Class ProtectedTransportEndpointDescription
- java.lang.Object
-
- org.onosproject.net.behaviour.protection.ProtectedTransportEndpointDescription
-
@Beta @Immutable public class ProtectedTransportEndpointDescription extends java.lang.ObjectConfiguration for a protected transport entity endpoint.
-
-
Constructor Summary
Constructors Modifier Constructor Description protectedProtectedTransportEndpointDescription(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 ProtectedTransportEndpointDescriptionbuildDescription(java.util.List<TransportEndpointDescription> paths, DeviceId peer, java.lang.String fingerprint)Creates aProtectedTransportEndpointDescription.java.lang.Stringfingerprint()Returns fingerprint to identify this protected transport entity.static ProtectedTransportEndpointDescriptionof(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.DeviceIdpeer()Returns DeviceId of remote peer of this endpoint.java.lang.StringtoString()
-
-
-
Constructor Detail
-
ProtectedTransportEndpointDescription
protected ProtectedTransportEndpointDescription(java.util.List<TransportEndpointDescription> paths, DeviceId peer, java.lang.String fingerprint)
Constructor.- Parameters:
paths-TransportEndpointDescriptionspeer- 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:
toStringin classjava.lang.Object
-
buildDescription
public static final ProtectedTransportEndpointDescription buildDescription(java.util.List<TransportEndpointDescription> paths, DeviceId peer, java.lang.String fingerprint)
Creates aProtectedTransportEndpointDescription.- Parameters:
paths-TransportEndpointDescriptions 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-TransportEndpointDescriptions forming protectionpeer- DeviceId of remote peer of this endpoint.fingerprint- opaque fingerprint object. must be serializable.- Returns:
TransportEndpointDescription
-
-