Class ProtectedTransportEndpointState
- java.lang.Object
-
- org.onosproject.net.behaviour.protection.ProtectedTransportEndpointState
-
@Beta @Immutable public class ProtectedTransportEndpointState extends java.lang.ObjectState of protected path endpoint.
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description static classProtectedTransportEndpointState.Builder
-
Field Summary
Fields Modifier and Type Field Description static intACTIVE_UNKNOWNActive path is currently unknown.
-
Constructor Summary
Constructors Modifier Constructor Description protectedProtectedTransportEndpointState(ProtectedTransportEndpointDescription description, java.util.List<TransportEndpointState> pathStates, int activePathIndex)
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description static ProtectedTransportEndpointState.Builderbuilder()ReturnsProtectedTransportEndpointStatebuilder.ProtectedTransportEndpointDescriptiondescription()Returns the description of this ProtectedPathEndPoint.java.util.List<TransportEndpointState>pathStates()Returns theTransportEndpointStates forming the ProtectedPathEndPoint.java.lang.StringtoString()intworkingPathIndex()Returns the index of the working Path inpathStates()List orACTIVE_UNKNOWN.
-
-
-
Field Detail
-
ACTIVE_UNKNOWN
public static final int ACTIVE_UNKNOWN
Active path is currently unknown.- See Also:
- Constant Field Values
-
-
Constructor Detail
-
ProtectedTransportEndpointState
protected ProtectedTransportEndpointState(ProtectedTransportEndpointDescription description, java.util.List<TransportEndpointState> pathStates, int activePathIndex)
-
-
Method Detail
-
description
public ProtectedTransportEndpointDescription description()
Returns the description of this ProtectedPathEndPoint.- Returns:
- the description
-
pathStates
public java.util.List<TransportEndpointState> pathStates()
Returns theTransportEndpointStates forming the ProtectedPathEndPoint.- Returns:
- the pathStates
-
workingPathIndex
public int workingPathIndex()
Returns the index of the working Path inpathStates()List orACTIVE_UNKNOWN.- Returns:
- the activePathIndex
-
toString
public java.lang.String toString()
- Overrides:
toStringin classjava.lang.Object
-
builder
public static ProtectedTransportEndpointState.Builder builder()
ReturnsProtectedTransportEndpointStatebuilder.- Returns:
- builder
-
-