Interface DestinationTargetRegistrationStrategy
-
- All Known Implementing Classes:
DefaultDestinationTargetRegistrationStrategy,KymaDestinationTargetRegistrationStrategy
public interface DestinationTargetRegistrationStrategyStrategy for creating required target system specific objects and registration to the target system.
-
-
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description voidderegisterDestinationTarget(DestinationTargetModel destinationTarget)Unregister exposed destinations of the given destination targetvoidregisterDestinationTarget(DestinationTargetModel destinationTarget, java.util.Map<java.lang.String,java.lang.String> params)Register a destination target and its assigned destinations and events in the target systemjava.util.List<java.lang.String>syncDestinationTargetWithRemoteSystem(DestinationTargetModel destinationTarget)Sync destination target with the remote system.
-
-
-
Method Detail
-
registerDestinationTarget
void registerDestinationTarget(DestinationTargetModel destinationTarget, java.util.Map<java.lang.String,java.lang.String> params) throws ApiRegistrationException
Register 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
java.util.List<java.lang.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
-
-