de.flapdoodle.embedmongo.runtime
Class ProcessControl
java.lang.Object
de.flapdoodle.embedmongo.runtime.ProcessControl
public class ProcessControl
- extends Object
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
SLEEPT_TIMEOUT
public static final int SLEEPT_TIMEOUT
- See Also:
- Constant Field Values
ProcessControl
public ProcessControl(Process process)
getReader
public Reader getReader()
getError
public InputStreamReader getError()
stop
public int stop()
fromCommandLine
public static ProcessControl fromCommandLine(List<String> commandLine,
boolean redirectErrorStream)
throws IOException
- Throws:
IOException
executeCommandLine
public static boolean executeCommandLine(String label,
ProcessConfig processConfig)
killProcess
public static boolean killProcess(Platform platform,
IStreamProcessor output,
int pid)
tryKillProcess
public static boolean tryKillProcess(Platform platform,
IStreamProcessor output,
int pid)
Copyright © 2012. All Rights Reserved.