de.flapdoodle.embedmongo.runtime
Class ProcessControl

java.lang.Object
  extended by de.flapdoodle.embedmongo.runtime.ProcessControl

public class ProcessControl
extends Object


Field Summary
static int SLEEPT_TIMEOUT
           
 
Constructor Summary
ProcessControl(Process process)
           
 
Method Summary
static boolean executeCommandLine(String label, ProcessConfig processConfig)
           
static ProcessControl fromCommandLine(List<String> commandLine, boolean redirectErrorStream)
           
 InputStreamReader getError()
           
 Reader getReader()
           
static boolean killProcess(Platform platform, IStreamProcessor output, int pid)
           
 int stop()
           
static boolean tryKillProcess(Platform platform, IStreamProcessor output, int pid)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

SLEEPT_TIMEOUT

public static final int SLEEPT_TIMEOUT
See Also:
Constant Field Values
Constructor Detail

ProcessControl

public ProcessControl(Process process)
Method Detail

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.