| Modifier and Type | Class and Description |
|---|---|
| private static enum |
| Modifier and Type | Field and Description |
|---|---|
| protected ChannelAsyncInputStream | |
| protected ChannelAsyncOutputStream | |
| protected ChannelAsyncInputStream | |
| private final String | |
| protected OutputStream | |
| protected final AtomicReference | |
| protected final AtomicReference | |
| protected InputStream | |
| protected InputStream | |
| protected OutputStream | |
| protected InputStream | |
| private static final InputStream | |
| protected final AtomicBoolean | |
| protected String | |
| protected String | |
| protected int | |
| protected OpenFuture | |
| protected OutputStream | |
| protected boolean | |
| protected StreamingChannel. |
| Access | Constructor and Description |
|---|---|
| protected | |
| protected |
| Modifier and Type | Method and Description |
|---|---|
| protected void | |
| protected abstract void | |
| protected void | doWriteData(byte[] data, int off, long len)
Implements abstract org.
|
| protected void | doWriteExtendedData(byte[] data, int off, long len)
Implements abstract org.
|
| public IoInputStream | |
| public IoOutputStream | |
| public IoInputStream | |
| public Set | |
| public String | |
| public OutputStream | |
| public String | |
| public Integer | |
| public InputStream | |
| protected Closeable | |
| public InputStream | getInvertedErr()
Implements org. Obtains an |
| public OutputStream | getInvertedIn()
Implements org. Obtains an |
| public InputStream | getInvertedOut()
Implements org. Obtains an |
| public OutputStream | |
| public StreamingChannel. | |
| public void | handleOpenFailure(Buffer
Incoming buffer)Buffer that triggered the callNote the buffer's read position is exactly after the information that read to this call was decoded Implements org. For a client channel, this method will be called internally by the session when the server has rejected this channel opening. |
| public void | handleOpenSuccess(long
Recipient identifier (UINT32 represented as a recipient, long long)Read/Write window size ( rwSize, long uint32)Preferred maximum packet size ( packetSize, Buffer uint32)Incoming buffer)Buffer that triggered the callNote the buffer's read position is exactly after the information that read to this call was decoded Implements org. For a client channel, this method will be called internally by the session when the confirmation has been received. |
| public void | handleWindowAdjust(Buffer
The rest of the message data buffer)Buffer after decoding the channel identifiersOverrides org. Implements org. Invoked when |
| public boolean | |
| protected boolean | |
| public synchronized OpenFuture | |
| public OpenFuture | open(long
Recipient identifier (UINT32 represented as a recipient, long long)Read/Write window size ( rwSize, long uint32)Preferred maximum packet size ( packetSize, Buffer uint32)Incoming buffer)Buffer that triggered the callNote the buffer's read position is exactly after the information that read to this call was decoded Implements org. For a server channel, this method will actually open the channel |
| public void | setErr(OutputStream
the err)OutputStreamImplements org. Sets an output stream for the channel to write received |
| public void | setIn(InputStream
an in)InputStream to be polled and forwardedImplements org. Sets an |
| public void | setOut(OutputStream
the out)OutputStreamImplements org. Sets an output stream for the channel to write received |
| public void | setRedirectErrorStream(boolean
whether to redirect the error stream to the output stream. redirectErrorStream)Implements org. Defines whether to redirect the error stream into the output stream; has no effect if
|
| public void | setStreaming(StreamingChannel.
Implements org.
|
| protected <C extends Collection | |
| public Set | waitFor(Collection<ClientChannelEvent>
The mask, long ClientChannelEvents maskThe timeout to wait (msec.) - if non-positive then forever timeout)Implements org. Waits until any of the specified events in the mask is signaled |
| asyncErr | back to summary |
|---|---|
| protected ChannelAsyncInputStream asyncErr | |
| asyncIn | back to summary |
|---|---|
| protected ChannelAsyncOutputStream asyncIn | |
| asyncOut | back to summary |
|---|---|
| protected ChannelAsyncInputStream asyncOut | |
| channelType | back to summary |
|---|---|
| private final String channelType | |
| err | back to summary |
|---|---|
| protected OutputStream err | |
| exitSignalHolder | back to summary |
|---|---|
| protected final AtomicReference<String> exitSignalHolder | |
| exitStatusHolder | back to summary |
|---|---|
| protected final AtomicReference<Integer> exitStatusHolder | |
| in | back to summary |
|---|---|
| protected InputStream in | |
| invertedErr | back to summary |
|---|---|
| protected InputStream invertedErr | |
| invertedIn | back to summary |
|---|---|
| protected OutputStream invertedIn | |
| invertedOut | back to summary |
|---|---|
| protected InputStream invertedOut | |
| NULL_INPUT_STREAM | back to summary |
|---|---|
| private static final InputStream NULL_INPUT_STREAM | |
| opened | back to summary |
|---|---|
| protected final AtomicBoolean opened | |
| openFailureLang | back to summary |
|---|---|
| protected String openFailureLang | |
| openFailureMsg | back to summary |
|---|---|
| protected String openFailureMsg | |
| openFailureReason | back to summary |
|---|---|
| protected int openFailureReason | |
| openFuture | back to summary |
|---|---|
| protected OpenFuture openFuture | |
| out | back to summary |
|---|---|
| protected OutputStream out | |
| redirectErrorStream | back to summary |
|---|---|
| protected boolean redirectErrorStream | |
| streaming | back to summary |
|---|---|
| protected StreamingChannel. | |
| AbstractClientChannel | back to summary |
|---|---|
| protected AbstractClientChannel(String type) | |
| AbstractClientChannel | back to summary |
|---|---|
| protected AbstractClientChannel(String type, Collection<? extends RequestHandler<Channel>> handlers) | |
| addChannelSignalRequestHandlers | back to summary |
|---|---|
| protected void addChannelSignalRequestHandlers(EventNotifier<String> notifier) | |
| doOpen | back to summary |
|---|---|
| protected abstract void doOpen() throws IOException | |
| doWriteData | back to summary |
|---|---|
| protected void doWriteData(byte[] data, int off, long len) throws IOException Implements abstract org.
| |
| doWriteExtendedData | back to summary |
|---|---|
| protected void doWriteExtendedData(byte[] data, int off, long len) throws IOException Implements abstract org.
| |
| getAsyncErr | back to summary |
|---|---|
| public IoInputStream getAsyncErr() Implements org.
| |
| getAsyncIn | back to summary |
|---|---|
| public IoOutputStream getAsyncIn() Implements org.
| |
| getAsyncOut | back to summary |
|---|---|
| public IoInputStream getAsyncOut() Implements org.
| |
| getChannelState | back to summary |
|---|---|
| public Set Implements org.
| |
| getChannelType | back to summary |
|---|---|
| public String getChannelType() Implements org.
| |
| getErr | back to summary |
|---|---|
| public OutputStream getErr() | |
| getExitSignal | back to summary |
|---|---|
| public String getExitSignal() Implements org.
| |
| getExitStatus | back to summary |
|---|---|
| public Integer getExitStatus() Implements org.
| |
| getIn | back to summary |
|---|---|
| public InputStream getIn() | |
| getInnerCloseable | back to summary |
|---|---|
| protected Closeable getInnerCloseable() Overrides org.
| |
| getInvertedErr | back to summary |
|---|---|
| public InputStream getInvertedErr() Implements org. Doc from org. Obtains an When the channel closes, it will not close the returned stream. It is the caller's responsibility to close the returned stream if needed. Closing the stream while the channel is open may cause the channel to be closed forcibly if more data arrives. The stream remains open after the channel has closed, so that the caller can read the last arrived data even afterwards. As with all external processes, the application should read this stream (unless it was redirected) to avoid that the channel blocks when the stream's buffer is full. The buffer size for the returned stream is bounded by the channel's local window size. If the caller does not read this stream, the channel will block once the local window is exhausted. This method should be called only after the channel has been opened.
| |
| getInvertedIn | back to summary |
|---|---|
| public OutputStream getInvertedIn() Implements org. Doc from org. Obtains an
When the channel closes, it will This method should be called only after the channel has been opened.
| |
| getInvertedOut | back to summary |
|---|---|
| public InputStream getInvertedOut() Implements org. Doc from org. Obtains an When the channel closes, it will not close the returned stream. It is the caller's responsibility to close the returned stream if needed. Closing the stream while the channel is open may cause the channel to be closed forcibly if more data arrives. The stream remains open after the channel has closed, so that the caller can read the last arrived data even afterwards. As with all external processes, the application should read this stream to avoid that the channel blocks when the stream's buffer is full. The buffer size for the returned stream is bounded by the channel's local window size. If the caller does not read this stream, the channel will block once the local window is exhausted. This method should be called only after the channel has been opened.
| |
| getOut | back to summary |
|---|---|
| public OutputStream getOut() | |
| getStreaming | back to summary |
|---|---|
| public StreamingChannel. Implements org.
| |
| handleOpenFailure | back to summary |
|---|---|
| public void handleOpenFailure(Buffer buffer) Implements org. Doc from org. For a client channel, this method will be called internally by the session when the server has rejected this channel opening. | |
| handleOpenSuccess | back to summary |
|---|---|
| public void handleOpenSuccess(long recipient, long rwSize, long packetSize, Buffer buffer) Implements org. Doc from org. For a client channel, this method will be called internally by the session when the confirmation has been received.
| |
| handleWindowAdjust | back to summary |
|---|---|
| public void handleWindowAdjust(Buffer buffer) throws IOException Overrides org. Implements org. Doc from org. Invoked when
| |
| isRedirectErrorStream | back to summary |
|---|---|
| public boolean isRedirectErrorStream() | |
| mayWrite | back to summary |
|---|---|
| protected boolean mayWrite() Overrides org.
| |
| open | back to summary |
|---|---|
| public synchronized OpenFuture open() throws IOException Implements org.
| |
| open | back to summary |
|---|---|
| public OpenFuture open(long recipient, long rwSize, long packetSize, Buffer buffer) Implements org. Doc from org. For a server channel, this method will actually open the channel
| |
| setErr | back to summary |
|---|---|
| public void setErr(OutputStream err) Implements org. Doc from org. Sets an output stream for the channel to write received
The stream must be set before the channel is opened. When the channel closes, it will
If no stream is set by the time the channel is opened, the channel will internally forward data to a stream that
can be read via the
| |
| setIn | back to summary |
|---|---|
| public void setIn(InputStream in) Implements org. Doc from org. Sets an
The stream must be set before the channel is opened. When the channel closes, it will
| |
| setOut | back to summary |
|---|---|
| public void setOut(OutputStream out) Implements org. Doc from org. Sets an output stream for the channel to write received
The stream must be set before the channel is opened. When the channel closes, it will
If no stream is set by the time the channel is opened, the channel will internally forward data to a stream that
can be read via the
| |
| setRedirectErrorStream | back to summary |
|---|---|
| public void setRedirectErrorStream(boolean redirectErrorStream) Implements org. Doc from org. Defines whether to redirect the error stream into the output stream; has no effect if
| |
| setStreaming | back to summary |
|---|---|
| public void setStreaming(StreamingChannel. Implements org.
| |
| updateCurrentChannelState | back to summary |
|---|---|
| protected <C extends Collection | |
| waitFor | back to summary |
|---|---|
| public Set Implements org. Doc from org. Waits until any of the specified events in the mask is signaled
| |
| Modifier and Type | Field and Description |
|---|---|
| private final CloseFuture | |
| public static final AbstractClientChannel. |
| Access | Constructor and Description |
|---|---|
| private |
| Modifier and Type | Method and Description |
|---|---|
| public void | addCloseFutureListener(SshFutureListener<CloseFuture>
The notification listener)SshFutureListener - never nullImplements org. Pre-register a listener to be informed when resource is closed. |
| public CloseFuture | close(boolean
true if the resource should be shut down abruptly, false for a
graceful closeImplements org. Close this resource asynchronously and return a future. |
| public boolean | isClosed()
Implements org. Returns |
| public boolean | isClosing()
Implements org. Returns |
| public IoReadFuture | read(Buffer
the buffer)Buffer to useImplements org. Note the buffer must not be touched until the returned read future is completed. |
| public void | removeCloseFutureListener(SshFutureListener<CloseFuture>
The register listener)SshFutureListener - never null. Ignored if not registered or
resource already closedImplements org. Remove a pre-registered close event listener |
| public static AbstractClientChannel. | |
| public static AbstractClientChannel. |
| closing | back to summary |
|---|---|
| private final CloseFuture closing | |
| INSTANCE | back to summary |
|---|---|
| public static final AbstractClientChannel. | |
| NullIoInputStream | back to summary |
|---|---|
| private NullIoInputStream() | |
| addCloseFutureListener | back to summary |
|---|---|
| public void addCloseFutureListener(SshFutureListener<CloseFuture> listener) Implements org. Doc from org. Pre-register a listener to be informed when resource is closed. If resource is already closed, the listener will be invoked immediately and not registered for future notification
| |
| close | back to summary |
|---|---|
| public CloseFuture close(boolean immediately) Implements org. Doc from org. Close this resource asynchronously and return a future. Resources support two closing modes: a graceful mode which will cleanly close the resource and an immediate mode which will close the resources abruptly.
| |
| isClosed | back to summary |
|---|---|
| public boolean isClosed() Implements org. Doc from org. Returns
| |
| isClosing | back to summary |
|---|---|
| public boolean isClosing() Implements org. Doc from org. Returns
| |
| read | back to summary |
|---|---|
| public IoReadFuture read(Buffer buffer) Implements org. Doc from org. Note the buffer must not be touched until the returned read future is completed.
| |
| removeCloseFutureListener | back to summary |
|---|---|
| public void removeCloseFutureListener(SshFutureListener<CloseFuture> listener) Implements org. Doc from org. Remove a pre-registered close event listener
| |
| valueOf | back to summary |
|---|---|
| public static AbstractClientChannel. | |
| values | back to summary |
|---|---|
| public static AbstractClientChannel. | |