Note
client channels may be associated with a server session if they are opened by the server - e.g., for agent proxy, port forwarding, etc..
| Modifier and Type | Method and Description |
|---|---|
| public IoInputStream | |
| public IoOutputStream | |
| public IoInputStream | |
| public Set | |
| public String | |
| public default ClientSession | |
| public String | |
| public Integer | |
| public InputStream | Returns: anInputStream for reading received data, or null if an output stream was set via
setErr(OutputStream)Obtains an |
| public OutputStream | Returns: anOutputStream for sending data, or null if an input stream was set via
setIn(InputStream)Obtains an |
| public InputStream | Returns: anInputStream for reading received data, or null if an output stream was set via
setOut(OutputStream)Obtains an |
| public OpenFuture | |
| public void | setErr(OutputStream
the err)OutputStreamSets an output stream for the channel to write received |
| public void | setIn(InputStream
an in)InputStream to be polled and forwardedSets an |
| public void | setOut(OutputStream
the out)OutputStreamSets an output stream for the channel to write received |
| public void | setRedirectErrorStream(boolean
whether to redirect the error stream to the output stream. redirectErrorStream)Defines whether to redirect the error stream into the output stream; has no effect if
|
| public static void | validateCommandExitStatusCode(String
The command string - used only for exception text command, Integer The exit status value exitStatus)Makes sure remote command exit status has been provided and it is zero |
| public Set | Returns: The actual signaled event - includesClientChannelEvent#TIMEOUT if timeout expired before
the expected event was signaledThe mask, long ClientChannelEvents maskThe timeout to wait (msec.) - if non-positive then forever timeout)Waits until any of the specified events in the mask is signaled |
| public default Set | Returns: The actual signaled event - includesClientChannelEvent#TIMEOUT if timeout expired before
the expected event was signaledThe mask, Duration ClientChannelEvents maskThe timeout to wait - if null then forever timeout)Waits until any of the specified events in the mask is signaled |
| getAsyncErr | back to summary |
|---|---|
| public IoInputStream getAsyncErr() | |
| getAsyncIn | back to summary |
|---|---|
| public IoOutputStream getAsyncIn() | |
| getAsyncOut | back to summary |
|---|---|
| public IoInputStream getAsyncOut() | |
| getChannelState | back to summary |
|---|---|
public Set
| |
| getChannelType | back to summary |
|---|---|
public String getChannelType()
| |
| getClientSession | back to summary |
|---|---|
| public default ClientSession getClientSession() Implements org.
| |
| getExitSignal | back to summary |
|---|---|
public String getExitSignal()
| |
| getExitStatus | back to summary |
|---|---|
public Integer getExitStatus()
| |
| getInvertedErr | back to summary |
|---|---|
| public InputStream getInvertedErr() 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() 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() 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.
| |
| open | back to summary |
|---|---|
| public OpenFuture open() throws IOException | |
| setErr | back to summary |
|---|---|
| public void setErr(OutputStream err) 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) 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) 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) Defines whether to redirect the error stream into the output stream; has no effect if
| |
| validateCommandExitStatusCode | back to summary |
|---|---|
| public static void validateCommandExitStatusCode(String command, Integer exitStatus) throws RemoteException Makes sure remote command exit status has been provided and it is zero
| |
| waitFor | back to summary |
|---|---|
| public Set Waits until any of the specified events in the mask is signaled
| |
| waitFor | back to summary |
|---|---|
| public default Set Waits until any of the specified events in the mask is signaled
| |