This class represents a command-line execution result with exit code, stdout and stderr. Method toString() is overloaded to simplify logging of the execution result.
Constructor and description |
---|
ExecutionResult
(java.util.Map initArgs) Constructor |
Type Params | Return Type | Name and description |
---|---|---|
|
int |
getCode() Accessor for the ExecutionResult.code |
|
java.lang.String |
getStdErr() Accessor for the ExecutionResult.stdErr |
|
java.lang.String |
getStdOut() Accessor for the ExecutionResult.stdOut |
|
boolean |
isSuccess() This method is used to ensure that there is no error for execution of the command. |
|
java.lang.String |
toString() |
Methods inherited from class | Name |
---|---|
class java.lang.Object |
java.lang.Object#wait(long, int), java.lang.Object#wait(long), java.lang.Object#wait(), java.lang.Object#equals(java.lang.Object), java.lang.Object#toString(), java.lang.Object#hashCode(), java.lang.Object#getClass(), java.lang.Object#notify(), java.lang.Object#notifyAll() |
Exit code returned by the program after the execution
Content of the standart output after the command execution
Content of the standart output after the command execution
Accessor for the ExecutionResult.code
Accessor for the ExecutionResult.stdErr
Accessor for the ExecutionResult.stdOut
This method is used to ensure that there is no error for execution of the command.