|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectorg.apache.camel.component.exec.ExecResult
public class ExecResult
Value object, that represents the result of an ExecCommand execution.
| Constructor Summary | |
|---|---|
ExecResult(ExecCommand command,
InputStream stdout,
InputStream stderr,
int exitValue)
Creates a ExecResult instance. |
|
| Method Summary | |
|---|---|
ExecCommand |
getCommand()
The executed command, that produced this result. |
int |
getExitValue()
The exit value of the command executable. |
InputStream |
getStderr()
Returns the content of the standart error output (stderr) of the executed command or null, if no output was produced in the stderr. |
InputStream |
getStdout()
Returns the content of the standart output (stdout) of the executed command or null, if no output was produced in the stdout. |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
|---|
public ExecResult(ExecCommand command,
InputStream stdout,
InputStream stderr,
int exitValue)
ExecResult instance.
command - A not-null reference of ExecCommand, that produced
the result.stdout - InputStream with the stdout of the command executable. If
there was no stdout, the value must be null.stderr - InputStream with the stderr of the command executable. If
there was no stderr, the value must be null.exitValue - the exit value of the command executable.| Method Detail |
|---|
public ExecCommand getCommand()
null.
public int getExitValue()
public InputStream getStdout()
null, if no output was produced in the stdout.
public InputStream getStderr()
null, if no output was produced in the stderr.
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||