Package org.intocps.maestro.webapi
Class SimulationLauncher
- java.lang.Object
-
- org.intocps.maestro.webapi.SimulationLauncher
-
public class SimulationLauncher extends java.lang.Object
-
-
Field Summary
Fields Modifier and Type Field Description static java.lang.StringSUN_JAVA_COMMANDSun property pointing the main class and its arguments.
-
Constructor Summary
Constructors Constructor Description SimulationLauncher()
-
Method Summary
All Methods Static Methods Concrete Methods Modifier and Type Method Description static java.lang.ProcessrestartApplication(java.io.File workingDirectory, java.lang.String... additionalArguments)Restart the current Java application
-
-
-
Field Detail
-
SUN_JAVA_COMMAND
public static final java.lang.String SUN_JAVA_COMMAND
Sun property pointing the main class and its arguments. Might not be defined on non Hotspot VM implementations.- See Also:
- Constant Field Values
-
-
Method Detail
-
restartApplication
public static java.lang.Process restartApplication(java.io.File workingDirectory, java.lang.String... additionalArguments) throws java.io.IOExceptionRestart the current Java application- Parameters:
additionalArguments- some custom code to be run before restarting- Returns:
- Throws:
java.io.IOException
-
-