Package org.openspaces.core.gateway
Class GSCForkHandler
java.lang.Object
org.openspaces.core.gateway.GSCForkHandler
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 Summary
FieldsModifier and TypeFieldDescriptionstatic final Stringprotected final org.apache.commons.logging.Log -
Constructor Summary
ConstructorsConstructorDescriptionGSCForkHandler(int lrmiPort, int discoveryPort, boolean startEmbeddedLus, ProcessingUnitInstance pui, String customJvmProperties) Constructor. -
Method Summary
Modifier and TypeMethodDescriptionvoidThis is the main entry point of this class.
-
Field Details
-
logger
protected final org.apache.commons.logging.Log logger -
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.
-