public interface ClientChannel
Modifier and Type | Field and Description |
---|---|
static String |
CHANNEL_EXEC |
static String |
CHANNEL_SHELL |
static String |
CHANNEL_SUBSYSTEM |
static int |
CLOSED |
static int |
EOF |
static int |
EXIT_SIGNAL |
static int |
EXIT_STATUS |
static int |
OPENED |
static int |
STDERR_DATA |
static int |
STDOUT_DATA |
static int |
TIMEOUT |
Modifier and Type | Method and Description |
---|---|
CloseFuture |
close(boolean immediately) |
Integer |
getExitStatus() |
InputStream |
getInvertedErr() |
OutputStream |
getInvertedIn()
Access to an output stream to send data directly to the remote channel.
|
InputStream |
getInvertedOut() |
OpenFuture |
open() |
void |
setErr(OutputStream err) |
void |
setIn(InputStream in)
Set an input stream that will be read by this channel and forwarded to
the remote channel.
|
void |
setOut(OutputStream out) |
int |
waitFor(int mask,
long timeout) |
static final String CHANNEL_EXEC
static final String CHANNEL_SHELL
static final String CHANNEL_SUBSYSTEM
static final int TIMEOUT
static final int CLOSED
static final int STDOUT_DATA
static final int STDERR_DATA
static final int EOF
static final int EXIT_STATUS
static final int EXIT_SIGNAL
static final int OPENED
OutputStream getInvertedIn()
setIn(java.io.InputStream)
method
and having the channel polling for data in that stream.InputStream getInvertedOut()
InputStream getInvertedErr()
void setIn(InputStream in)
getInvertedIn()
method instead and write data directly.in
- an InputStream to be polled and forwardedvoid setOut(OutputStream out)
void setErr(OutputStream err)
OpenFuture open() throws IOException
IOException
int waitFor(int mask, long timeout)
CloseFuture close(boolean immediately)
Integer getExitStatus()
Copyright © 2008–2014 The Apache Software Foundation. All rights reserved.