Package com.yahoo.config.application.api
Class Endpoint
java.lang.Object
com.yahoo.config.application.api.Endpoint
Represents an application- or instance-level endpoint in deployments.xml.
- An instance-level endpoint is global and may span multiple regions within a single instance. - An application-level endpoint may span multiple instances within a single region, or even multiple instances across multiple regions, depending on the name service used for the cloud.
- Author:
- ogronnesby, mpolden
-
Nested Class Summary
Nested ClassesModifier and TypeClassDescriptionstatic enumThe level of targets in an endpointstatic final classA target of an endpoint -
Field Summary
Fields -
Constructor Summary
ConstructorsConstructorDescriptionEndpoint(String endpointId, String containerId, Endpoint.Level level, List<Endpoint.Target> targets) -
Method Summary
Modifier and TypeMethodDescriptionThe container cluster this points toThe unique identifier of thisbooleaninthashCode()level()The level of targets in thisList<com.yahoo.config.provision.RegionName>regions()The regions this points totargets()The targets this points totoString()withTargets(List<Endpoint.Target> targets) Returns a copy of this with targets set to given targets
-
Field Details
-
DEFAULT_ID
- See Also:
-
-
Constructor Details
-
Endpoint
public Endpoint(String endpointId, String containerId, Endpoint.Level level, List<Endpoint.Target> targets)
-
-
Method Details
-
endpointId
The unique identifier of this -
containerId
The container cluster this points to -
regions
The regions this points to -
level
The level of targets in this -
targets
The targets this points to -
withTargets
Returns a copy of this with targets set to given targets -
equals
-
hashCode
public int hashCode() -
toString
-