public interface Channel extends java.io.Closeable, SSHPacketHandler, ErrorNotifiable
| Modifier and Type | Interface and Description |
|---|---|
static interface |
Channel.Direct
Direct channels are those that are initiated by us.
|
static interface |
Channel.Forwarded
Forwarded channels are those that are initiated by the server.
|
ErrorNotifiable.Util| Modifier and Type | Method and Description |
|---|---|
void |
close()
Close this channel.
|
boolean |
getAutoExpand() |
int |
getID() |
java.io.InputStream |
getInputStream() |
int |
getLocalMaxPacketSize() |
long |
getLocalWinSize() |
LoggerFactory |
getLoggerFactory()
Get the LoggerFactory associated with the SSH client.
|
java.io.OutputStream |
getOutputStream() |
int |
getRecipient() |
int |
getRemoteMaxPacketSize() |
long |
getRemoteWinSize() |
java.lang.String |
getType() |
boolean |
isEOF()
Returns whether EOF has been received.
|
boolean |
isOpen() |
void |
join() |
void |
join(long timeout,
java.util.concurrent.TimeUnit unit) |
void |
setAutoExpand(boolean autoExpand)
Set whether local window should automatically expand when data is received, irrespective of whether data has been
read from that stream.
|
handlenotifyErrorvoid close()
throws TransportException,
ConnectionException
close in interface java.lang.AutoCloseableclose in interface java.io.CloseableTransportExceptionConnectionExceptionboolean getAutoExpand()
setAutoExpand(boolean)int getID()
java.io.InputStream getInputStream()
InputStream for this channel.int getLocalMaxPacketSize()
long getLocalWinSize()
java.io.OutputStream getOutputStream()
OutputStream for this channel.int getRecipient()
int getRemoteMaxPacketSize()
long getRemoteWinSize()
java.lang.String getType()
boolean isOpen()
void setAutoExpand(boolean autoExpand)
InputStream.autoExpand - whether local windows should automatically expandvoid join()
throws ConnectionException
ConnectionExceptionvoid join(long timeout,
java.util.concurrent.TimeUnit unit)
throws ConnectionException
ConnectionExceptionboolean isEOF()
LoggerFactory getLoggerFactory()