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 Details

    • StopOldStartNew

      public StopOldStartNew()
  • Method Details

    • doSwitch

      public <S extends ServiceBase> S doSwitch(S sOld, S sNew)
      Description copied from interface: Strategy
      Performs the switch.
      Type Parameters:
      S - the actual type of the service
      Parameters:
      sOld - the old service instance
      sNew - the new service instance
      Returns:
      the active service