org.ourgrid.common.executor
Class ExecutorResult

java.lang.Object
  extended by org.ourgrid.common.executor.ExecutorResult
All Implemented Interfaces:
java.io.Serializable

public class ExecutorResult
extends java.lang.Object
implements java.io.Serializable

This class represents the result of an execution.

See Also:
Serialized Form

Constructor Summary
ExecutorResult()
           
 
Method Summary
 boolean equals(java.lang.Object obj)
          Two executor results are equal if their stderr, stdout and exitvalue are equal.
 int getExitValue()
          Returns the exit value of the process
 java.lang.String getStderr()
          Returns the error of the process
 java.lang.String getStdout()
          Returns the standard output of the process
 void setExitValue(int exitValue)
          Sets the exit value of the process.
 void setStderr(java.lang.String stderr)
          Set the error of the process.
 void setStdout(java.lang.String stdout)
          Set the standard output of the process.
 java.lang.String toString()
          Returns a textual representation of an ExecutorResult.
 
Methods inherited from class java.lang.Object
clone, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Constructor Detail

ExecutorResult

public ExecutorResult()
Method Detail

toString

public java.lang.String toString()
Returns a textual representation of an ExecutorResult.

Overrides:
toString in class java.lang.Object

getExitValue

public int getExitValue()
Returns the exit value of the process

Returns:
The exit value

getStderr

public java.lang.String getStderr()
Returns the error of the process

Returns:
The error

getStdout

public java.lang.String getStdout()
Returns the standard output of the process

Returns:
The standard output

setExitValue

public void setExitValue(int exitValue)
Sets the exit value of the process.

Parameters:
exitValue - The exit value of the process

setStderr

public void setStderr(java.lang.String stderr)
Set the error of the process.

Parameters:
stderr - The standard err of the process

setStdout

public void setStdout(java.lang.String stdout)
Set the standard output of the process.

Parameters:
stdout - The standard output of the process

equals

public boolean equals(java.lang.Object obj)
Two executor results are equal if their stderr, stdout and exitvalue are equal.

Overrides:
equals in class java.lang.Object
Returns:
true If the two executor results are equals. false, otherwise.