us.ihmc.utilities.processManagement
Class JavaProcessSpawner
java.lang.Object
us.ihmc.utilities.processManagement.JavaProcessSpawner
public class JavaProcessSpawner
- extends java.lang.Object
A lot of the magic in this class comes from inheriting the classpath of the current process before spawning
other processes. Hence the lack of a main method here. This should always be a field in some other class.
- Author:
- dstephen
Methods inherited from class java.lang.Object |
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
JavaProcessSpawner
public JavaProcessSpawner(boolean shouldKillChildProcessesOnShutdown)
JavaProcessSpawner
public JavaProcessSpawner()
spawn
public void spawn(java.lang.Class<?> mainClass,
java.lang.String[] javaArgs,
java.lang.String[] programArgs)
spawn
public void spawn(java.lang.Class<?> mainClass,
java.lang.String[] javaArgs,
java.lang.String[] programArgs,
JavaProcessSpawner.ExitListener exitListener)
spawn
public void spawn(java.lang.Class<?> mainClass,
java.lang.String[] progArgs)
spawn
public void spawn(java.lang.Class<?> mainClass)
hasRunningProcesses
public boolean hasRunningProcesses()
killAll
public void killAll()
prettyPrintClassPath
public void prettyPrintClassPath()
prettyPrintNativeLibraryPath
public void prettyPrintNativeLibraryPath()
printRunningClasses
public void printRunningClasses()