Class ProtectedTransportEndpointState
- java.lang.Object
-
- org.onosproject.net.behaviour.protection.ProtectedTransportEndpointState
-
@Beta @Immutable public class ProtectedTransportEndpointState extends Object
State of protected path endpoint.
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description static class
ProtectedTransportEndpointState.Builder
-
Field Summary
Fields Modifier and Type Field Description static int
ACTIVE_UNKNOWN
Active path is currently unknown.
-
Constructor Summary
Constructors Modifier Constructor Description protected
ProtectedTransportEndpointState(ProtectedTransportEndpointDescription description, List<TransportEndpointState> pathStates, int activePathIndex)
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description static ProtectedTransportEndpointState.Builder
builder()
ReturnsProtectedTransportEndpointState
builder.ProtectedTransportEndpointDescription
description()
Returns the description of this ProtectedPathEndPoint.List<TransportEndpointState>
pathStates()
Returns theTransportEndpointState
s forming the ProtectedPathEndPoint.String
toString()
int
workingPathIndex()
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, List<TransportEndpointState> pathStates, int activePathIndex)
-
-
Method Detail
-
description
public ProtectedTransportEndpointDescription description()
Returns the description of this ProtectedPathEndPoint.- Returns:
- the description
-
pathStates
public List<TransportEndpointState> pathStates()
Returns theTransportEndpointState
s forming the ProtectedPathEndPoint.- Returns:
- the pathStates
-
workingPathIndex
public int workingPathIndex()
Returns the index of the working Path inpathStates()
List orACTIVE_UNKNOWN
.- Returns:
- the activePathIndex
-
builder
public static ProtectedTransportEndpointState.Builder builder()
ReturnsProtectedTransportEndpointState
builder.- Returns:
- builder
-
-