com.jalios.jcms.tools
Class ProcessExecutor.ProcessExecutionResult

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

public class ProcessExecutor.ProcessExecutionResult
extends Object

Holds process execution result.


Method Summary
 int getExitValue()
          Retrieve the status exit code of the process
 String getStderr()
          The text written to the standard error.
 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 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 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


Copyright © 2001-2010 Jalios SA. All Rights Reserved.