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 pointsscope- Scope of this endpointnames- 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 nameweight- The relative weight of this endpointroutingMethod- The routing method used by this endpointauthMethod- 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 Summary
ConstructorsConstructorDescriptionContainerEndpoint(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 aContainerEndpointrecord class. -
Method Summary
Modifier and TypeMethodDescriptioncom.yahoo.config.provision.zone.AuthMethodReturns the value of theauthMethodrecord component.Returns the value of theclusterIdrecord component.final booleanIndicates whether some other object is "equal to" this one.final inthashCode()Returns a hash code value for this object.names()Returns the value of thenamesrecord component.com.yahoo.config.provision.zone.RoutingMethodReturns the value of theroutingMethodrecord component.scope()Returns the value of thescoperecord component.final StringtoString()Returns a string representation of this record class.weight()Returns the value of theweightrecord component.
-
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 aContainerEndpointrecord class.- Parameters:
clusterId- the value for theclusterIdrecord componentscope- the value for thescoperecord componentnames- the value for thenamesrecord componentweight- the value for theweightrecord componentroutingMethod- the value for theroutingMethodrecord componentauthMethod- the value for theauthMethodrecord component
-
-
Method Details
-
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. -
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. -
equals
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 withObjects::equals(Object,Object). -
clusterId
Returns the value of theclusterIdrecord component.- Returns:
- the value of the
clusterIdrecord component
-
scope
Returns the value of thescoperecord component.- Returns:
- the value of the
scoperecord component
-
names
Returns the value of thenamesrecord component.- Returns:
- the value of the
namesrecord component
-
weight
Returns the value of theweightrecord component.- Returns:
- the value of the
weightrecord component
-
routingMethod
public com.yahoo.config.provision.zone.RoutingMethod routingMethod()Returns the value of theroutingMethodrecord component.- Returns:
- the value of the
routingMethodrecord component
-
authMethod
public com.yahoo.config.provision.zone.AuthMethod authMethod()Returns the value of theauthMethodrecord component.- Returns:
- the value of the
authMethodrecord component
-