Class PortsMeta

java.lang.Object
com.yahoo.vespa.model.PortsMeta
All Implemented Interfaces:
Serializable

public class PortsMeta extends Object implements Serializable
Track meta information about the ports of a service.
Author:
Vidar Larsen
See Also:
  • Constructor Details

    • PortsMeta

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

    • 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.