Package com.jalios.jcms.tools
Class ProcessExecutor.ProcessExecutionResult
java.lang.Object
com.jalios.jcms.tools.ProcessExecutor.ProcessExecutionResult
- Enclosing class:
ProcessExecutor
Holds process execution result.
-
Method Summary
Modifier and TypeMethodDescriptionintRetrieve the status exit code of the processThe text written to the standard error.The text written to the standard output.booleanCheck if the process was stopped after a timeout
-
Method Details
-
getExitValue
public int getExitValue()Retrieve the status exit code of the process- Returns:
- the exit value of the process. By convention,
0indicates normal termination. - Since:
- jcms-7.0.0
-
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
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
-