org.jclouds.compute.domain
Class ExecChannel

java.lang.Object
  extended by org.jclouds.compute.domain.ExecChannel
All Implemented Interfaces:
Closeable

public class ExecChannel
extends Object
implements Closeable

A current connection to an exec'd command. Please ensure you call close()


Constructor Summary
ExecChannel(OutputStream input, InputStream output, InputStream error, com.google.common.base.Supplier<Integer> exitStatus, Closeable closer)
           
 
Method Summary
 void close()
          closes resources associated with this channel.
 InputStream getError()
           
 com.google.common.base.Supplier<Integer> getExitStatus()
           
 OutputStream getInput()
           
 InputStream getOutput()
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

ExecChannel

public ExecChannel(OutputStream input,
                   InputStream output,
                   InputStream error,
                   com.google.common.base.Supplier<Integer> exitStatus,
                   Closeable closer)
Method Detail

getInput

public OutputStream getInput()
Returns:
the command's stdin stream.

getError

public InputStream getError()
Returns:
the command's stderr stream.

getOutput

public InputStream getOutput()
Returns:
the command's stdout stream.

getExitStatus

public com.google.common.base.Supplier<Integer> getExitStatus()
Returns:
the exit status of the command if it was received, or null if this information was not received.

close

public void close()
           throws IOException
closes resources associated with this channel.

Specified by:
close in interface Closeable
Throws:
IOException


Copyright © 2009-2014 The Apache Software Foundation. All Rights Reserved.