Package org.marketcetera.util.exec
Class ExecResult
- java.lang.Object
-
- org.marketcetera.util.exec.ExecResult
-
public class ExecResult extends Object
A container for the result of a process execution. This comprises an exit code and (ifDisposition.MEMORYis elected) the captured contents of the interleaved standard output and error streams.- Since:
- 0.5.0
- Version:
- $Id: ExecResult.java 16154 2012-07-14 16:34:05Z colin $
- Author:
- tlerios@marketcetera.com
-
-
Constructor Summary
Constructors Constructor Description ExecResult(int exitCode, byte[] output)Creates a new container for the given exit code and captured output.
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description intgetExitCode()Returns the exit code.byte[]getOutput()Returns the captured output.
-
-
-
Constructor Detail
-
ExecResult
public ExecResult(int exitCode, byte[] output)Creates a new container for the given exit code and captured output.- Parameters:
exitCode- The exit code.output- The captured output. It may be null ifDisposition.MEMORYis not elected.
-
-
Method Detail
-
getExitCode
public int getExitCode()
Returns the exit code.- Returns:
- The code.
-
getOutput
public byte[] getOutput()
Returns the captured output.- Returns:
- The output. It may be null if
Disposition.MEMORYis not elected.
-
-