org.rhq.core.util.exec
Class ProcessExecutorResults

java.lang.Object
  extended by org.rhq.core.util.exec.ProcessExecutorResults

public class ProcessExecutorResults
extends Object

The results of a process execution.

Author:
John Mazzitelli
See Also:
ProcessExecutor, ProcessToStart

Constructor Summary
ProcessExecutorResults()
           
 
Method Summary
 Throwable getError()
          If the process failed to start, this will indicate the error that occurred.
 Integer getExitCode()
          The exit code of the process.
 void setError(Throwable t)
           
 void setExitCode(Integer code)
           
 String toString()
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Constructor Detail

ProcessExecutorResults

public ProcessExecutorResults()
Method Detail

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.