Class GSCForkHandler

java.lang.Object
org.openspaces.core.gateway.GSCForkHandler

public class GSCForkHandler extends Object
A class responsible for forking a new GSC for the WAN Gateway, and relocating this PU instance (the gateway) to the new container. Forking is performed with the admin api, or by calling the GSC script directly.
Since:
8.0.3
Author:
barakme, eitany
  • Field Details

    • logger

      protected final org.apache.commons.logging.Log logger
    • AGENT_EXT_JAVA_OPTIONS

      public static final String AGENT_EXT_JAVA_OPTIONS
      See Also:
  • Constructor Details

    • GSCForkHandler

      public GSCForkHandler(int lrmiPort, int discoveryPort, boolean startEmbeddedLus, ProcessingUnitInstance pui, String customJvmProperties)
      Constructor.
      Parameters:
      lrmiPort - the target GSC port.
      discoveryPort - the target discovery port.
      pui - the PU instance object of the current PU.
  • Method Details

    • movePuToAlternativeGSC

      public void movePuToAlternativeGSC()
      This is the main entry point of this class. This method creates a new GSC and moves this PUI to the new GSC.