Class ProtectedTransportEndpointDescription
- java.lang.Object
-
- org.onosproject.net.behaviour.protection.ProtectedTransportEndpointDescription
-
@Beta @Immutable public class ProtectedTransportEndpointDescription extends java.lang.Object
Configuration for a protected transport entity endpoint.
-
-
Constructor Summary
Constructors Modifier Constructor Description protected
ProtectedTransportEndpointDescription(java.util.List<TransportEndpointDescription> paths, DeviceId peer, java.lang.String fingerprint)
Constructor.
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description static ProtectedTransportEndpointDescription
buildDescription(java.util.List<TransportEndpointDescription> paths, DeviceId peer, java.lang.String fingerprint)
Creates aProtectedTransportEndpointDescription
.java.lang.String
fingerprint()
Returns fingerprint to identify this protected transport entity.static ProtectedTransportEndpointDescription
of(java.util.List<TransportEndpointDescription> paths, DeviceId peer, java.lang.String fingerprint)
Creates aProtectedTransportEndpointDescription
.java.util.List<TransportEndpointDescription>
paths()
Returns List of underlying transport entity endpoints in priority order.DeviceId
peer()
Returns DeviceId of remote peer of this endpoint.java.lang.String
toString()
-
-
-
Constructor Detail
-
ProtectedTransportEndpointDescription
protected ProtectedTransportEndpointDescription(java.util.List<TransportEndpointDescription> paths, DeviceId peer, java.lang.String fingerprint)
Constructor.- Parameters:
paths
-TransportEndpointDescription
speer
- remote peer of this endpointfingerprint
- to identify this protected transport entity.
-
-
Method Detail
-
paths
public java.util.List<TransportEndpointDescription> paths()
Returns List of underlying transport entity endpoints in priority order.- Returns:
- the transport entity endpoint descriptions
-
peer
public DeviceId peer()
Returns DeviceId of remote peer of this endpoint.- Returns:
- the peer
-
fingerprint
public java.lang.String fingerprint()
Returns fingerprint to identify this protected transport entity.- Returns:
- the fingerprint
-
toString
public java.lang.String toString()
- Overrides:
toString
in classjava.lang.Object
-
buildDescription
public static final ProtectedTransportEndpointDescription buildDescription(java.util.List<TransportEndpointDescription> paths, DeviceId peer, java.lang.String fingerprint)
Creates aProtectedTransportEndpointDescription
.- Parameters:
paths
-TransportEndpointDescription
s forming protectionpeer
- DeviceId of remote peer of this endpoint.fingerprint
- opaque fingerprint object. must be serializable.- Returns:
TransportEndpointDescription
-
of
public static final ProtectedTransportEndpointDescription of(java.util.List<TransportEndpointDescription> paths, DeviceId peer, java.lang.String fingerprint)
Creates aProtectedTransportEndpointDescription
.- Parameters:
paths
-TransportEndpointDescription
s forming protectionpeer
- DeviceId of remote peer of this endpoint.fingerprint
- opaque fingerprint object. must be serializable.- Returns:
TransportEndpointDescription
-
-