@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, setHandler
static final String FINGERPRINT
CompletableFuture<ConnectPoint> createProtectionEndpoint(ProtectedTransportEndpointDescription configuration)
configuration
- ProtectedTransportEndpointDescription
ConnectPoint
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
- ProtectedTransportEndpointDescription
identifier
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()
ProtectedTransportEndpointDescription
s on the Device.ProtectedTransportEndpointDescription
s 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()
ProtectedTransportEndpointState
s on the Device.ProtectedTransportEndpointState
s 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 retrievedefault CompletableFuture<Void> switchToForce(ConnectPoint identifier, int index)
index
.identifier
- ConnectPoint
for the virtual Port representing
protected path endpointindex
- path index to switch toCompletableFuture<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