Class ProtectedTransportEndpointState
- java.lang.Object
-
- org.onosproject.net.behaviour.protection.ProtectedTransportEndpointState
-
@Beta @Immutable public class ProtectedTransportEndpointState extends java.lang.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, java.util.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.java.util.List<TransportEndpointState>
pathStates()
Returns theTransportEndpointState
s forming the ProtectedPathEndPoint.java.lang.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, 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 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
-
toString
public java.lang.String toString()
- Overrides:
toString
in classjava.lang.Object
-
builder
public static ProtectedTransportEndpointState.Builder builder()
ReturnsProtectedTransportEndpointState
builder.- Returns:
- builder
-
-