Package org.apache.camel.component.ssh
Class SshResult
- java.lang.Object
-
- org.apache.camel.component.ssh.SshResult
-
public class SshResult extends Object
-
-
Field Summary
Fields Modifier and Type Field Description static StringEXIT_VALUEThe value of this header is the exit value that is returned, after the execution.static StringSTDERRThe value of this header is aInputStreamwith the standard error stream of the executable.
-
Constructor Summary
Constructors Constructor Description SshResult(String command, Integer exitValue, InputStream out, InputStream err)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description StringgetCommand()IntegergetExitValue()InputStreamgetStderr()InputStreamgetStdout()
-
-
-
Field Detail
-
STDERR
public static final String STDERR
The value of this header is aInputStreamwith the standard error stream of the executable.- See Also:
- Constant Field Values
-
EXIT_VALUE
public static final String EXIT_VALUE
The value of this header is the exit value that is returned, after the execution. By convention a non-zero status exit value indicates abnormal termination.
Note that the exit value is OS dependent.- See Also:
- Constant Field Values
-
-
Constructor Detail
-
SshResult
public SshResult(String command, Integer exitValue, InputStream out, InputStream err)
-
-
Method Detail
-
getCommand
public String getCommand()
-
getExitValue
public Integer getExitValue()
-
getStdout
public InputStream getStdout()
-
getStderr
public InputStream getStderr()
-
-