public static class ProcessExecutor.RunningProcess
extends java.lang.Object
| Modifier and Type | Method and Description |
|---|---|
int |
getExitCode()
Gets the exit code for the process.
|
boolean |
isAlive() |
void |
waitFor()
Waits for this Process to finish executing.
|
void |
waitFor(boolean assertZeroExit)
Waits for the process to finish executing,
optionally asserts the exit code for the process should be zero.
|
void |
waitFor(boolean assertZeroExit,
long timeout,
java.util.concurrent.TimeUnit unit)
Waits for this Process to finish executing, or times out.
|
void |
waitFor(long timeout,
java.util.concurrent.TimeUnit unit)
Waits for this Process to finish executing, or times out.
|
public boolean isAlive()
public void waitFor()
public void waitFor(long timeout,
java.util.concurrent.TimeUnit unit)
Process.waitFor(long, TimeUnit) for more information.timeout - The timeout.unit - The units.public void waitFor(boolean assertZeroExit)
assertZeroExit - If the exit code should be asserted.public void waitFor(boolean assertZeroExit,
long timeout,
java.util.concurrent.TimeUnit unit)
Process.waitFor(long, TimeUnit) for more information.
Optionally assets the exit code for the process should be zero.assertZeroExit - If the exit code should be asserted.timeout - The timeout.unit - The units.public int getExitCode()