Class RuntimeExec.ExecutionResult

java.lang.Object
org.alfresco.util.exec.RuntimeExec.ExecutionResult
Enclosing class:
RuntimeExec

public static class RuntimeExec.ExecutionResult extends Object
Object to carry the results of an execution to the caller.
Author:
Derek Hulley
  • Method Details

    • toString

      public String toString()
      Overrides:
      toString in class 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 String getStdOut()
    • getStdErr

      public String getStdErr()