Class ProcessExecutor.ProcessExecutionResult

  • Enclosing class:
    ProcessExecutor

    public class ProcessExecutor.ProcessExecutionResult
    extends java.lang.Object
    Holds process execution result.
    • Method Summary

      All Methods Instance Methods Concrete Methods 
      Modifier and Type Method Description
      int getExitValue()
      Retrieve the status exit code of the process
      java.lang.String getStderr()
      The text written to the standard error.
      java.lang.String getStdout()
      The text written to the standard output.
      boolean hasTimedOut()
      Check if the process was stopped after a timeout
      • Methods inherited from class java.lang.Object

        clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
    • Method Detail

      • 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 java.lang.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:
        ProcessExecutor.setCaptureOutput(boolean)
      • getStderr

        public java.lang.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:
        ProcessExecutor.setCaptureOutput(boolean)
      • 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