Class TransportEndpointState
- java.lang.Object
 - 
- org.onosproject.net.behaviour.protection.TransportEndpointState
 
 
- 
@Beta @Immutable public class TransportEndpointState extends Object
State of a underlying path endpoint, forming protected path. 
- 
- 
Nested Class Summary
Nested Classes Modifier and Type Class Description static classTransportEndpointState.Builder 
- 
Constructor Summary
Constructors Modifier Constructor Description protectedTransportEndpointState(TransportEndpointDescription description, TransportEndpointId id, boolean live, Map<String,String> attributes) 
- 
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description Map<String,String>attributes()Returns implementation defined attributes.static TransportEndpointState.Builderbuilder()ReturnsTransportEndpointStatebuilder.TransportEndpointDescriptiondescription()Returns description associated to this state.TransportEndpointIdid()ReturnsTransportEndpointId.booleanisLive()Returns liveness state of this endpoint.StringtoString() 
 - 
 
- 
- 
Constructor Detail
- 
TransportEndpointState
protected TransportEndpointState(TransportEndpointDescription description, TransportEndpointId id, boolean live, Map<String,String> attributes)
 
 - 
 
- 
Method Detail
- 
id
public TransportEndpointId id()
ReturnsTransportEndpointId.- Returns:
 - identifier
 
 
- 
isLive
public boolean isLive()
Returns liveness state of this endpoint.- Returns:
 - true if this endpoint is live.
 
 
- 
description
public TransportEndpointDescription description()
Returns description associated to this state.- Returns:
 - the description
 
 
- 
attributes
@Beta public Map<String,String> attributes()
Returns implementation defined attributes.- Returns:
 - the attributes
 
 
- 
builder
public static TransportEndpointState.Builder builder()
ReturnsTransportEndpointStatebuilder.- Returns:
 - builder
 
 
 - 
 
 -