|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectorg.openqa.selenium.remote.internal.SubProcess
public class SubProcess
Basic class for working with subprocesses. Methods are provided for starting and stopping a subprocess. Also provides a mechanism for detecting if a subprocess dies before it is explicitly stopped.
Constructor Summary | |
---|---|
SubProcess(java.lang.ProcessBuilder processBuilder)
Creates a new SubProcess that will ignore all output from any
spawned process. |
|
SubProcess(java.lang.ProcessBuilder processBuilder,
java.io.OutputStream outputStream)
Creates a new SubProcess that will redirect all output to the
specified stream. |
Method Summary | |
---|---|
int |
exitValue()
|
boolean |
isRunning()
|
void |
launch()
Starts a new Process using this instance's ProcessBuilder . |
void |
shutdown()
Shutsdown the Process currently being managed by this instance,
if any. |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public SubProcess(java.lang.ProcessBuilder processBuilder)
SubProcess
that will ignore all output from any
spawned process.
processBuilder
- Used to launch new processes.SubProcess(ProcessBuilder, OutputStream)
public SubProcess(java.lang.ProcessBuilder processBuilder, java.io.OutputStream outputStream)
SubProcess
that will redirect all output to the
specified stream. The output written to stderr is always merged with the
output to stdout.
processBuilder
- Used to launch new processes.outputStream
- The stream to redirect all process output to.Method Detail |
---|
public void launch()
Process
using this instance's ProcessBuilder
.
If a Process
is already running, this method will be a no-op.
WebDriverException
- If an I/O error occurs while starting the new
process.public int exitValue()
java.lang.IllegalThreadStateException
- If the managed subprocess was never
started, or if it was started but has not terminated yet.public boolean isRunning()
public void shutdown()
Process
currently being managed by this instance,
if any.
Process.destroy()
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |