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.
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
toString
public java.lang.String toString()
- Overrides:
toString
in class java.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()
Copyright © 2005 - 2010 Alfresco Software, Inc. All Rights Reserved.