public class ProcessExecutorResults extends Object
ProcessExecutor,
ProcessToStart| Constructor and Description |
|---|
ProcessExecutorResults() |
| Modifier and Type | Method and Description |
|---|---|
Throwable |
getError()
If the process failed to start, this will indicate the error that occurred.
|
Integer |
getExitCode()
The exit code of the process.
|
Process |
getProcess() |
void |
setError(Throwable t) |
void |
setExitCode(Integer code) |
void |
setProcess(Process process) |
String |
toString() |
public Integer getExitCode()
ProcessToStart did not want to wait for the process to
exit, the returned value will be null. The returned value will also be null if the
process failed to start; in which case, you can get the getError() that caused the failure.null if the process failed to start or the we didn't wait for
the process to exitpublic void setExitCode(Integer code)
public Throwable getError()
null if the process started successfully)public void setError(Throwable t)
public Process getProcess()
public void setProcess(Process process)
Copyright © 2008-2014 Red Hat, Inc.. All Rights Reserved.