Class 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>
      S
      doSwitch​(S sOld, S sNew)
      Performs the switch.
      • Methods inherited from class java.lang.Object

        clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
    • Constructor Detail

      • StopOldStartNew

        public StopOldStartNew()
    • Method Detail

      • 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