@Beta public interface ProtectionConfigBehaviour extends HandlerBehaviour
Protected transport entity model
- ProtectedTransportEndpoint
+- TransportEndpoint - working transport entity/path
|
+- TransportEndpoint - standby transport entity/path
⋮
ProtectedTransportEndpoint is the entity representing the transport entity endpoint.
Traffic flowing into the protected transport endpoint will flow
through one of it's underlying TransportEndpoint, (=active transport entity).
After successful creation of ProtectedPathEndpoint, implementation is expected
to advertise virtual Port corresponding to the ProtectedPathEndpoint created.| Modifier and Type | Field and Description |
|---|---|
static String |
FINGERPRINT
Annotation key for virtual Port.
|
handler, setHandlerstatic final String FINGERPRINT
CompletableFuture<ConnectPoint> createProtectionEndpoint(ProtectedTransportEndpointDescription configuration)
configuration - ProtectedTransportEndpointDescriptionConnectPoint for the virtual Port added on success,
or exceptionally return ProtectionException as cause on error.CompletableFuture<ConnectPoint> updateProtectionEndpoint(ConnectPoint identifier, ProtectedTransportEndpointDescription configuration)
identifier - ConnectPoint for the virtual Port representing
protected path endpointconfiguration - ProtectedTransportEndpointDescriptionidentifier on success,
or exceptionally return ProtectionException as cause on error.CompletableFuture<Boolean> deleteProtectionEndpoint(ConnectPoint identifier)
identifier - ConnectPoint for the virtual Port representing
protected path endpointCompletableFuture<Map<ConnectPoint,ProtectedTransportEndpointDescription>> getProtectionEndpointConfigs()
ProtectedTransportEndpointDescriptions on the Device.ProtectedTransportEndpointDescriptions on the Devicedefault CompletableFuture<ProtectedTransportEndpointDescription> getProtectionEndpointConfig(ConnectPoint identifier)
ProtectedTransportEndpointDescription with specified ID.identifier - ConnectPoint for the virtual Port representing
protected path endpoint to retrieveProtectedTransportEndpointDescription found or nullCompletableFuture<Map<ConnectPoint,ProtectedTransportEndpointState>> getProtectionEndpointStates()
ProtectedTransportEndpointStates on the Device.ProtectedTransportEndpointStates on the Devicedefault CompletableFuture<ProtectedTransportEndpointState> getProtectionEndpointState(ConnectPoint identifier)
ProtectedTransportEndpointState on the Device.identifier - ConnectPoint for the virtual Port representing
protected path endpoint to retrieveProtectedTransportEndpointState found or nulldefault CompletableFuture<Map.Entry<ConnectPoint,ProtectedTransportEndpointState>> getProtectionEndpoint(String fingerprint)
ConnectPoint and ProtectedTransportEndpointState pair)
on the Device.fingerprint - of the protected path endpoint to retrieve@Deprecated CompletableFuture<Void> switchWorkingPath(ConnectPoint identifier, int index)
index.identifier - ConnectPoint for the virtual Port representing
protected path endpointindex - working path index to switch todefault CompletableFuture<Void> switchToForce(ConnectPoint identifier, int index)
index.identifier - ConnectPoint for the virtual Port representing
protected path endpointindex - path index to switch todefault CompletableFuture<Void> switchToManual(ConnectPoint identifier, int index)
index.
This operation would be rejected if the specified path is a fault path.identifier - ConnectPoint for the virtual Port representing
protected path endpointindex - path index to switch todefault CompletableFuture<Void> switchToAutomatic(ConnectPoint identifier)
identifier - ConnectPoint for the virtual Port representing
protected path endpoint