org.marketcetera.util.exec
Class ExecResult

java.lang.Object
  extended by 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 (if Disposition.MEMORY is 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
ExecResult(int exitCode, byte[] output)
          Creates a new container for the given exit code and captured output.
 
Method Summary
 int getExitCode()
          Returns the exit code.
 byte[] getOutput()
          Returns the captured output.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

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 if Disposition.MEMORY is 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.MEMORY is not elected.


Copyright © 2012. All Rights Reserved.