Interface DestinationTargetRegistrationStrategy
- All Known Implementing Classes:
DefaultDestinationTargetRegistrationStrategy,KymaDestinationTargetRegistrationStrategy
public interface DestinationTargetRegistrationStrategy
Strategy for creating required target system specific objects and registration to the target system.
-
Method Summary
Modifier and TypeMethodDescriptionvoidderegisterDestinationTarget(DestinationTargetModel destinationTarget) Unregister exposed destinations of the given destination targetvoidregisterDestinationTarget(DestinationTargetModel destinationTarget, Map<String, String> params) Register a destination target and its assigned destinations and events in the target systemsyncDestinationTargetWithRemoteSystem(DestinationTargetModel destinationTarget) Sync destination target with the remote system.
-
Method Details
-
registerDestinationTarget
void registerDestinationTarget(DestinationTargetModel destinationTarget, Map<String, String> params) throws ApiRegistrationExceptionRegister a destination target and its assigned destinations and events in the target system- Parameters:
destinationTarget- the destination targetparams- the parameters map which is used for passing additional parameters- Throws:
ApiRegistrationException- in case the registration fails
-
deregisterDestinationTarget
void deregisterDestinationTarget(DestinationTargetModel destinationTarget) throws ApiRegistrationException, DeleteDestinationTargetNotPossibleException Unregister exposed destinations of the given destination target- Parameters:
destinationTarget- the destination target- Throws:
ApiRegistrationException- in case the unregistration failsDeleteDestinationTargetNotPossibleException- in case of deregistering the destination target is not allowed
-
syncDestinationTargetWithRemoteSystem
List<String> syncDestinationTargetWithRemoteSystem(DestinationTargetModel destinationTarget) throws ApiRegistrationException Sync destination target with the remote system.- Parameters:
destinationTarget- the destination target- Returns:
- list of sync failed destinations
- Throws:
ApiRegistrationException- in case the synchronization fails
-