Class PortsMeta

    • Constructor Detail

      • PortsMeta

        public PortsMeta()
        Create a new PortsMeta object.
    • Method Detail

      • on

        public PortsMeta on​(int offset)
        Set up the port to tag, for chained usage.
        Parameters:
        offset - the relative port to tag
        Returns:
        this portsmeta, to allow .tag calls
      • tag

        public PortsMeta tag​(String meta)
        Tag a previously setup port (using 'on') with the specified tag.
        Parameters:
        meta - the tag to apply to the current port
        Returns:
        this portsmeta, to allow further .tag calls
      • contains

        public boolean contains​(int offset,
                                String meta)
        Check if the port at a specific offset contains a particular meta attribute.
        Parameters:
        offset - the relative port offset
        meta - the meta info we want to check for
        Returns:
        boolean true if the specific port has registered the meta
      • getNumPorts

        public int getNumPorts()
        Get the number of ports with registered meta.
        Returns:
        the number of ports that have been registered
      • getTagsAt

        public List<String> getTagsAt​(int offset)
        Get an iterator of the Strings registered at the specific point.
        Parameters:
        offset - the relative offset to inquire about tags
        Returns:
        List of tags.
      • getRpcAdminOffset

        public Integer getRpcAdminOffset()
        Get the offset to the rpc port used for admin.
        Returns:
        the offset, or null if none set
      • getRpcStatusOffset

        public Integer getRpcStatusOffset()
        Get the offset to the rpc port used for status.
        Returns:
        Integer the offset, or null if none set.
      • getHttpAdminOffset

        public Integer getHttpAdminOffset()
        Get the offset to the http port used for admin.
        Returns:
        Integer the offset, or null if none set.
      • getHttpStatusOffset

        public Integer getHttpStatusOffset()
        Get the offset to the http port used for status.
        Returns:
        Integer the offset, or null if none set.