Class TransportEndpointState
- java.lang.Object
-
- org.onosproject.net.behaviour.protection.TransportEndpointState
-
@Beta @Immutable public class TransportEndpointState extends java.lang.Object
State of a underlying path endpoint, forming protected path.
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description static class
TransportEndpointState.Builder
-
Constructor Summary
Constructors Modifier Constructor Description protected
TransportEndpointState(TransportEndpointDescription description, TransportEndpointId id, boolean live, java.util.Map<java.lang.String,java.lang.String> attributes)
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description java.util.Map<java.lang.String,java.lang.String>
attributes()
Returns implementation defined attributes.static TransportEndpointState.Builder
builder()
ReturnsTransportEndpointState
builder.TransportEndpointDescription
description()
Returns description associated to this state.TransportEndpointId
id()
ReturnsTransportEndpointId
.boolean
isLive()
Returns liveness state of this endpoint.java.lang.String
toString()
-
-
-
Constructor Detail
-
TransportEndpointState
protected TransportEndpointState(TransportEndpointDescription description, TransportEndpointId id, boolean live, java.util.Map<java.lang.String,java.lang.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 java.util.Map<java.lang.String,java.lang.String> attributes()
Returns implementation defined attributes.- Returns:
- the attributes
-
toString
public java.lang.String toString()
- Overrides:
toString
in classjava.lang.Object
-
builder
public static TransportEndpointState.Builder builder()
ReturnsTransportEndpointState
builder.- Returns:
- builder
-
-