Package org.jclouds.compute.domain
Class ExecChannel
java.lang.Object
org.jclouds.compute.domain.ExecChannel
- All Implemented Interfaces:
Closeable
,AutoCloseable
A current connection to an exec'd command. Please ensure you call
close()
-
Constructor Summary
ConstructorsConstructorDescriptionExecChannel
(OutputStream input, InputStream output, InputStream error, com.google.common.base.Supplier<Integer> exitStatus, Closeable closer) -
Method Summary
-
Constructor Details
-
ExecChannel
public ExecChannel(OutputStream input, InputStream output, InputStream error, com.google.common.base.Supplier<Integer> exitStatus, Closeable closer)
-
-
Method Details
-
getInput
- Returns:
- the command's
stdin
stream.
-
getError
- Returns:
- the command's
stderr
stream.
-
getOutput
- Returns:
- the command's
stdout
stream.
-
getExitStatus
- Returns:
- the exit status of the command if it was received, or
null
if this information was not received.
-
close
closes resources associated with this channel.- Specified by:
close
in interfaceAutoCloseable
- Specified by:
close
in interfaceCloseable
- Throws:
IOException
-