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
public class StopOldStartNew extends AbstractStrategy
Starts the new service first, stops then the old.- Author:
- Holger Eichelberger, SSE
-
-
Constructor Summary
Constructors Constructor Description StopOldStartNew()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description <S extends ServiceBase>
SdoSwitch(S sOld, S sNew)Performs the switch.-
Methods inherited from class de.iip_ecosphere.platform.services.environment.switching.AbstractStrategy
getLogger
-
-
-
-
Method Detail
-
doSwitch
public <S extends ServiceBase> S doSwitch(S sOld, S sNew)
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
-
-