Package com.yahoo.config.application.api
Class Endpoint
- java.lang.Object
-
- com.yahoo.config.application.api.Endpoint
-
public class Endpoint extends Object
Represents an application- or instance-level endpoint in deployments.xml. - An instance-level endpoint is global and can span multiple regions within a single instance. - An application-level endpoint points can span multiple instances within a single region.- Author:
- ogronnesby, mpolden
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description static class
Endpoint.Level
The level of targets in an endpointstatic class
Endpoint.Target
A target of an endpoint
-
Field Summary
Fields Modifier and Type Field Description static String
DEFAULT_ID
-
Constructor Summary
Constructors Constructor Description Endpoint(String endpointId, String containerId, Endpoint.Level level, List<Endpoint.Target> targets)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description String
containerId()
The container cluster this points toString
endpointId()
The unique identifer of thisboolean
equals(Object o)
int
hashCode()
Endpoint.Level
level()
The level of targets in thisList<com.yahoo.config.provision.RegionName>
regions()
The regions of this points toList<Endpoint.Target>
targets()
The targets this points toString
toString()
Endpoint
withTargets(List<Endpoint.Target> targets)
Returns a copy of this with targets set to given targets
-
-
-
Field Detail
-
DEFAULT_ID
public static final String DEFAULT_ID
- See Also:
- Constant Field Values
-
-
Constructor Detail
-
Endpoint
public Endpoint(String endpointId, String containerId, Endpoint.Level level, List<Endpoint.Target> targets)
-
-
Method Detail
-
endpointId
public String endpointId()
The unique identifer of this
-
containerId
public String containerId()
The container cluster this points to
-
regions
public List<com.yahoo.config.provision.RegionName> regions()
The regions of this points to
-
level
public Endpoint.Level level()
The level of targets in this
-
targets
public List<Endpoint.Target> targets()
The targets this points to
-
withTargets
public Endpoint withTargets(List<Endpoint.Target> targets)
Returns a copy of this with targets set to given targets
-
-