Record Class ContainerEndpoint

java.lang.Object
java.lang.Record
com.yahoo.vespa.hosted.controller.api.integration.configserver.ContainerEndpoint
Record Components:
clusterId - ID of the cluster to which this points
scope - Scope of this endpoint
names - All valid DNS names for this endpoint. This can contain both proper DNS names and synthetic identifiers used for routing, such as a Host header value that is not necessarily a proper DNS name
weight - The relative weight of this endpoint
routingMethod - The routing method used by this endpoint
authMethod - The authentication method supported by this endpoint

public record ContainerEndpoint(String clusterId, String scope, List<String> names, OptionalInt weight, com.yahoo.config.provision.zone.RoutingMethod routingMethod, com.yahoo.config.provision.zone.AuthMethod authMethod) extends Record
The endpoint of a container cluster. This encapsulates the endpoint details passed from controller to the config server on deploy.
Author:
mpolden
  • Constructor Details

    • ContainerEndpoint

      public ContainerEndpoint(String clusterId, String scope, List<String> names, OptionalInt weight, com.yahoo.config.provision.zone.RoutingMethod routingMethod, com.yahoo.config.provision.zone.AuthMethod authMethod)
      Creates an instance of a ContainerEndpoint record class.
      Parameters:
      clusterId - the value for the clusterId record component
      scope - the value for the scope record component
      names - the value for the names record component
      weight - the value for the weight record component
      routingMethod - the value for the routingMethod record component
      authMethod - the value for the authMethod record component
  • Method Details

    • toString

      public final String toString()
      Returns a string representation of this record class. The representation contains the name of the class, followed by the name and value of each of the record components.
      Specified by:
      toString in class Record
      Returns:
      a string representation of this object
    • hashCode

      public final int hashCode()
      Returns a hash code value for this object. The value is derived from the hash code of each of the record components.
      Specified by:
      hashCode in class Record
      Returns:
      a hash code value for this object
    • equals

      public final boolean equals(Object o)
      Indicates whether some other object is "equal to" this one. The objects are equal if the other object is of the same class and if all the record components are equal. All components in this record class are compared with Objects::equals(Object,Object).
      Specified by:
      equals in class Record
      Parameters:
      o - the object with which to compare
      Returns:
      true if this object is the same as the o argument; false otherwise.
    • clusterId

      public String clusterId()
      Returns the value of the clusterId record component.
      Returns:
      the value of the clusterId record component
    • scope

      public String scope()
      Returns the value of the scope record component.
      Returns:
      the value of the scope record component
    • names

      public List<String> names()
      Returns the value of the names record component.
      Returns:
      the value of the names record component
    • weight

      public OptionalInt weight()
      Returns the value of the weight record component.
      Returns:
      the value of the weight record component
    • routingMethod

      public com.yahoo.config.provision.zone.RoutingMethod routingMethod()
      Returns the value of the routingMethod record component.
      Returns:
      the value of the routingMethod record component
    • authMethod

      public com.yahoo.config.provision.zone.AuthMethod authMethod()
      Returns the value of the authMethod record component.
      Returns:
      the value of the authMethod record component