public abstract class AbstractSessionChannel extends ChannelNG<SshClientContext>
ChannelNG.ChannelInputStream| Modifier and Type | Field and Description |
|---|---|
static int |
EXITCODE_NOT_RECEIVED |
static int |
SSH_EXTENDED_DATA_STDERR |
cache, con, connection, localWindow, remoteWindow| Constructor and Description |
|---|
AbstractSessionChannel(int maximumPacketSize,
int initialWindowSize,
int maximumWindowSpace,
int minimumWindowSpace,
boolean autoConsume) |
AbstractSessionChannel(int maximumPacketSize,
int initialWindowSize,
int maximumWindowSpace,
int minimumWindowSpace,
ChannelRequestFuture closeFuture,
boolean autoConsume) |
| Modifier and Type | Method and Description |
|---|---|
RequestFuture |
allocatePseudoTerminal(java.lang.String type) |
RequestFuture |
allocatePseudoTerminal(java.lang.String type,
int cols,
int rows) |
RequestFuture |
allocatePseudoTerminal(java.lang.String type,
int cols,
int rows,
int width,
int height,
PseudoTerminalModes modes) |
RequestFuture |
allocatePseudoTerminal(java.lang.String type,
int cols,
int rows,
PseudoTerminalModes modes) |
void |
changeTerminalDimensions(int cols,
int rows,
int width,
int height) |
protected byte[] |
createChannel() |
RequestFuture |
executeCommand(java.lang.String cmd) |
RequestFuture |
executeCommand(java.lang.String cmd,
java.lang.String charset) |
int |
getExitCode() |
java.lang.String |
getExitSignalInfo() |
int |
getMaximumLocalPacketLength() |
int |
getMaximumRemotePacketLength() |
boolean |
isFlowControlEnabled() |
boolean |
isSingleSession() |
protected void |
onChannelClosed() |
protected void |
onChannelClosing() |
protected void |
onChannelError(java.lang.Throwable e) |
protected void |
onChannelFree() |
protected void |
onChannelOpen() |
protected void |
onChannelOpenConfirmation() |
protected void |
onChannelRequest(java.lang.String requesttype,
boolean wantreply,
byte[] requestdata) |
protected void |
onLocalEOF() |
protected void |
onRemoteEOF() |
protected byte[] |
openChannel(byte[] requestdata) |
RequestFuture |
setEnvironmentVariable(java.lang.String key,
java.lang.String val) |
void |
setSingleSession(boolean singleSession) |
RequestFuture |
signal(java.lang.String signal)
Send a signal to the remote process.
|
RequestFuture |
startShell() |
RequestFuture |
startSubsystem(java.lang.String subsystem) |
addEventListener, canClose, checkWindowSpace, clearIdleState, close, close, createCache, evaluateWindowSpace, getChannelType, getCloseFuture, getConnection, getConnectionProtocol, getContext, getInputStream, getLastActivity, getLocalId, getLocalPacket, getLocalWindow, getMaxiumRemotePacketSize, getMaxiumRemoteWindowSize, getOpenFuture, getOutputStream, getRemoteId, getRemotePacket, getRemoteWindow, getSessionIdentifier, getTimeout, haltIncomingData, isClosed, isClosing, isConnected, isIncomingDataHalted, isLocalEOF, isOpen, isRemoteEOF, log, log, log, logMessage, onChannelData, onChannelOpenFailure, onExtendedData, onRemoteClose, onWindowAdjust, processChannelRequestResponse, registerExtendedDataType, resetIdleState, resumeIncomingData, sendChannelDataAndBlock, sendChannelDataAndBlock, sendChannelDataAndBlock, sendChannelDataAndBlock, sendChannelDataAndBlock, sendChannelDataAndBlock, sendChannelRequest, sendChannelRequest, sendData, sendEOF, sendExtendedData, sendExtendedData, sendRequestResponse, sendWindowAdjust, sendWindowAdjust, setTimeoutpublic static final int EXITCODE_NOT_RECEIVED
public static final int SSH_EXTENDED_DATA_STDERR
public AbstractSessionChannel(int maximumPacketSize,
int initialWindowSize,
int maximumWindowSpace,
int minimumWindowSpace,
boolean autoConsume)
public AbstractSessionChannel(int maximumPacketSize,
int initialWindowSize,
int maximumWindowSpace,
int minimumWindowSpace,
ChannelRequestFuture closeFuture,
boolean autoConsume)
public boolean isSingleSession()
public void setSingleSession(boolean singleSession)
protected void onChannelFree()
onChannelFree in class ChannelNG<SshClientContext>protected byte[] createChannel()
throws java.io.IOException
createChannel in class ChannelNG<SshClientContext>java.io.IOExceptionprotected byte[] openChannel(byte[] requestdata)
throws WriteOperationRequest,
ChannelOpenException
openChannel in class ChannelNG<SshClientContext>WriteOperationRequestChannelOpenExceptionprotected void onChannelOpenConfirmation()
onChannelOpenConfirmation in class ChannelNG<SshClientContext>protected void onChannelError(java.lang.Throwable e)
onChannelError in class ChannelNG<SshClientContext>protected void onChannelClosed()
onChannelClosed in class ChannelNG<SshClientContext>protected void onChannelOpen()
onChannelOpen in class ChannelNG<SshClientContext>public RequestFuture allocatePseudoTerminal(java.lang.String type)
public RequestFuture allocatePseudoTerminal(java.lang.String type, int cols, int rows)
public RequestFuture allocatePseudoTerminal(java.lang.String type, int cols, int rows, PseudoTerminalModes modes)
public void changeTerminalDimensions(int cols,
int rows,
int width,
int height)
public RequestFuture signal(java.lang.String signal)
ABRT ALRM FPE HUP ILL INT KILL PIPE QUIT SEGV TERM USR1 USR2
signal - java.io.IOExceptionpublic RequestFuture allocatePseudoTerminal(java.lang.String type, int cols, int rows, int width, int height, PseudoTerminalModes modes)
public RequestFuture setEnvironmentVariable(java.lang.String key, java.lang.String val)
public RequestFuture startShell()
public RequestFuture executeCommand(java.lang.String cmd)
public RequestFuture executeCommand(java.lang.String cmd, java.lang.String charset)
public RequestFuture startSubsystem(java.lang.String subsystem)
protected void onChannelClosing()
onChannelClosing in class ChannelNG<SshClientContext>protected void onChannelRequest(java.lang.String requesttype,
boolean wantreply,
byte[] requestdata)
onChannelRequest in class ChannelNG<SshClientContext>public int getExitCode()
public boolean isFlowControlEnabled()
public java.lang.String getExitSignalInfo()
protected void onRemoteEOF()
onRemoteEOF in class ChannelNG<SshClientContext>protected void onLocalEOF()
onLocalEOF in class ChannelNG<SshClientContext>public int getMaximumRemotePacketLength()
public int getMaximumLocalPacketLength()
Copyright © 2022. All rights reserved.