public class ProcessExecutionResults extends Object
SystemInfo.executeProcess(ProcessExecution).| Constructor and Description |
|---|
ProcessExecutionResults() |
| Modifier and Type | Method and Description |
|---|---|
String |
getCapturedOutput()
Returns the full output of the process (stdout plus stderr) as a
String. |
Throwable |
getError()
An error that occurred, typically due to a startup failure.
|
Integer |
getExitCode()
If the process finished, this is its exit code.
|
Process |
getProcess() |
void |
setProcess(Process process) |
String |
toString() |
public Integer getExitCode()
This will be null if the process was never waited on or if the wait time expired before the
process exited.
null if it could not be determinedSystemInfo.executeProcess(ProcessExecution)public Throwable getError()
null if no known error occurredpublic String getCapturedOutput()
String. This returns
null if the process's output was not captured.nullpublic Process getProcess()
public void setProcess(Process process)
Copyright © 2008-2014 Red Hat, Inc.. All Rights Reserved.