Package org.alfresco.util.exec
Class RuntimeExec.ExecutionResult
java.lang.Object
org.alfresco.util.exec.RuntimeExec.ExecutionResult
- Enclosing class:
- RuntimeExec
Object to carry the results of an execution to the caller.
- Author:
- Derek Hulley
-
Method Summary
Modifier and TypeMethodDescriptionint
boolean
boolean
A helper method to force a kill of the process that generated this result.toString()
-
Method Details
-
toString
-
killProcess
public boolean killProcess()A helper method to force a kill of the process that generated this result. This is useful in cases where the process started is not expected to exit, or doesn't exit quickly. If the "wait for completion" flag is false then the process may still be running when this result is returned.- Returns:
- true if the process was killed, otherwise false
-
getSuccess
public boolean getSuccess()- Returns:
- Returns true if the command was deemed to be successful according to the failure codes returned by the execution.
-
getExitValue
public int getExitValue() -
getStdOut
-
getStdErr
-