org.openqa.selenium.os
Class WindowsProcessGroup

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

@Beta
public class WindowsProcessGroup
extends java.lang.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(java.lang.String executable, java.lang.String... args)
           
 
Method Summary
 void copyOutputTo(java.io.OutputStream out)
           
 int destroy()
           
 void executeAsync()
           
 java.util.Map<java.lang.String,java.lang.String> getEnvironment()
           
 int getExitCode()
           
 java.lang.String getStdOut()
           
 void setEnvironmentVariable(java.lang.String name, java.lang.String value)
           
 void setInput(java.lang.String allInput)
           
 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(java.lang.String executable,
                           java.lang.String... args)
Method Detail

getEnvironment

public java.util.Map<java.lang.String,java.lang.String> getEnvironment()

setEnvironmentVariable

public void setEnvironmentVariable(java.lang.String name,
                                   java.lang.String value)

copyOutputTo

public void copyOutputTo(java.io.OutputStream out)

setInput

public void setInput(java.lang.String allInput)

executeAsync

public void executeAsync()

waitFor

public void waitFor()
             throws java.lang.InterruptedException
Throws:
java.lang.InterruptedException

destroy

public int destroy()

getExitCode

public int getExitCode()

getStdOut

public java.lang.String getStdOut()


Copyright © 2012. All Rights Reserved.