Package org.alfresco.util.exec
Class RuntimeExec.ExecutionResult
- java.lang.Object
-
- org.alfresco.util.exec.RuntimeExec.ExecutionResult
-
- Enclosing class:
- RuntimeExec
public static class RuntimeExec.ExecutionResult extends java.lang.Object
Object to carry the results of an execution to the caller.- Author:
- Derek Hulley
-
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description int
getExitValue()
java.lang.String
getStdErr()
java.lang.String
getStdOut()
boolean
getSuccess()
boolean
killProcess()
A helper method to force a kill of the process that generated this result.java.lang.String
toString()
-
-
-
Method Detail
-
toString
public java.lang.String toString()
- Overrides:
toString
in classjava.lang.Object
-
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
public java.lang.String getStdOut()
-
getStdErr
public java.lang.String getStdErr()
-
-