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