org.rhq.core.util.exec
Class ProcessExecutorResults
java.lang.Object
org.rhq.core.util.exec.ProcessExecutorResults
public class ProcessExecutorResults
- extends Object
The results of a process execution.
- Author:
- John Mazzitelli
- See Also:
ProcessExecutor,
ProcessToStart
ProcessExecutorResults
public ProcessExecutorResults()
getExitCode
public Integer getExitCode()
- The exit code of the process. Note that if the
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.
- Returns:
- the exit code of the process;
null if the process failed to start or the we didn't wait for
the process to exit
setExitCode
public void setExitCode(Integer code)
getError
public Throwable getError()
- If the process failed to start, this will indicate the error that occurred.
- Returns:
- start error (may be
null if the process started successfully)
setError
public void setError(Throwable t)
toString
public String toString()
- Overrides:
toString in class Object
Copyright © 2008-2012 Red Hat, Inc.. All Rights Reserved.