org.openqa.selenium.os
Class WindowsProcessGroup

java.lang.Object
  extended by org.openqa.selenium.os.WindowsProcessGroup

@Beta
public class WindowsProcessGroup
extends Object

Utility class for grouping a set of processes into a process group on Windows. This is primarily used for processes that spawn child processes and then disconnect from them: killing the parent process should kill the children too. That sounds a bit more sinsiter than it actually is.


Constructor Summary
WindowsProcessGroup(String executable, String... args)
           
 
Method Summary
 void copyOutputTo(OutputStream out)
           
 int destroy()
           
 void executeAsync()
           
 Map<String,String> getEnvironment()
           
 int getExitCode()
           
 String getStdOut()
           
 boolean isRunning()
           
 void setEnvironmentVariable(String name, String value)
           
 void setInput(String allInput)
           
 void setWorkingDirectory(File workingDirectory)
           
 void waitFor()
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

WindowsProcessGroup

public WindowsProcessGroup(String executable,
                           String... args)
Method Detail

getEnvironment

public Map<String,String> getEnvironment()

setEnvironmentVariable

public void setEnvironmentVariable(String name,
                                   String value)

copyOutputTo

public void copyOutputTo(OutputStream out)

setInput

public void setInput(String allInput)

setWorkingDirectory

public void setWorkingDirectory(File workingDirectory)

executeAsync

public void executeAsync()

waitFor

public void waitFor()
             throws InterruptedException
Throws:
InterruptedException

destroy

public int destroy()

getExitCode

public int getExitCode()

isRunning

public boolean isRunning()

getStdOut

public String getStdOut()


Copyright © 2013. All Rights Reserved.