Class StopOldStartNew
java.lang.Object
de.iip_ecosphere.platform.services.environment.switching.AbstractStrategy
de.iip_ecosphere.platform.services.environment.switching.StopOldStartNew
- All Implemented Interfaces:
Strategy
Starts the new service first, stops then the old.
- Author:
- Holger Eichelberger, SSE
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescription<S extends ServiceBase>
SdoSwitch(S sOld, S sNew) Performs the switch.Methods inherited from class de.iip_ecosphere.platform.services.environment.switching.AbstractStrategy
getLogger
-
Constructor Details
-
StopOldStartNew
public StopOldStartNew()
-
-
Method Details
-
doSwitch
Description copied from interface:StrategyPerforms the switch.- Type Parameters:
S- the actual type of the service- Parameters:
sOld- the old service instancesNew- the new service instance- Returns:
- the active service
-