public class RunnerMediator
extends java.lang.Object
Constructor and Description |
---|
RunnerMediator() |
Modifier and Type | Method and Description |
---|---|
ProcessHandler |
createProcess(GeneralCommandLine commandLine)
In case of windows creates process with runner mediator(runnerw.exe) injected to command line string, which adds a capability
to terminate process tree gracefully with ctrl+break.
|
static boolean |
destroyProcess(java.lang.Process process)
Destroys process tree: in case of windows via imitating ctrl+break, in case of unix via sending sig_kill to every process in tree.
|
static RunnerMediator |
getInstance()
Creates default runner mediator
|
public static RunnerMediator getInstance()
public ProcessHandler createProcess(GeneralCommandLine commandLine) throws ExecutionException
ExecutionException
public static boolean destroyProcess(java.lang.Process process)
process
- to kill with all sub-processes.