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 protectedProtectedTransportEndpointDescription(List<TransportEndpointDescription> paths, DeviceId peer, String fingerprint)Constructor. 
- 
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description static ProtectedTransportEndpointDescriptionbuildDescription(List<TransportEndpointDescription> paths, DeviceId peer, String fingerprint)Creates aProtectedTransportEndpointDescription.Stringfingerprint()Returns fingerprint to identify this protected transport entity.static ProtectedTransportEndpointDescriptionof(List<TransportEndpointDescription> paths, DeviceId peer, String fingerprint)Creates aProtectedTransportEndpointDescription.List<TransportEndpointDescription>paths()Returns List of underlying transport entity endpoints in priority order.DeviceIdpeer()Returns DeviceId of remote peer of this endpoint.StringtoString() 
 - 
 
- 
- 
Constructor Detail
- 
ProtectedTransportEndpointDescription
protected ProtectedTransportEndpointDescription(List<TransportEndpointDescription> paths, DeviceId peer, String fingerprint)
Constructor.- Parameters:
 paths-TransportEndpointDescriptionspeer- 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-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(List<TransportEndpointDescription> paths, DeviceId peer, 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
 
 - 
 
 -