Class ProcessExecutor.ProcessExecutionResult

java.lang.Object
com.jalios.jcms.tools.ProcessExecutor.ProcessExecutionResult
Enclosing class:
ProcessExecutor

public class ProcessExecutor.ProcessExecutionResult extends Object
Holds process execution result.
  • Method Details

    • getExitValue

      public int getExitValue()
      Retrieve the status exit code of the process
      Returns:
      the exit value of the process. By convention, 0 indicates normal termination.
      Since:
      jcms-7.0.0
    • getStdout

      public String getStdout()
      The text written to the standard output.

      Requires captureOuput option of ProcessExecutor to be enabled.

      Returns:
      a String or null if capturing the text was not requested
      Since:
      jcms-7.0.0
      See Also:
    • getStderr

      public String getStderr()
      The text written to the standard error.

      Requires captureOuput option of ProcessExecutor to be enabled.

      Returns:
      a String or null if capturing the text was not requested
      Since:
      jcms-7.0.0
      See Also:
    • hasTimedOut

      public boolean hasTimedOut()
      Check if the process was stopped after a timeout
      Returns:
      true if the process has timed out, false if the process ended normally
      Since:
      jcms-7.0.0