java.lang.Object
de.iip_ecosphere.platform.services.environment.switching.AbstractStrategy
de.iip_ecosphere.platform.services.environment.switching.StartNewStopOld
All Implemented Interfaces:
Strategy

public class StartNewStopOld extends AbstractStrategy
Starts the new service first, stops then the old.
Author:
Holger Eichelberger, SSE
  • Constructor Details

    • StartNewStopOld

      public StartNewStopOld()
  • 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