public abstract class AbstractSessionChannel extends com.sshtools.synergy.ssh.ChannelNG<SshClientContext>
Modifier and Type | Field and Description |
---|---|
static int |
EXITCODE_NOT_RECEIVED |
static int |
SSH_EXTENDED_DATA_STDERR |
Constructor and Description |
---|
AbstractSessionChannel(int maximumPacketSize,
int initialWindowSize,
int maximumWindowSpace,
int minimumWindowSpace,
boolean autoConsume) |
AbstractSessionChannel(int maximumPacketSize,
int initialWindowSize,
int maximumWindowSpace,
int minimumWindowSpace,
com.sshtools.common.ssh.ChannelRequestFuture closeFuture,
boolean autoConsume) |
Modifier and Type | Method and Description |
---|---|
com.sshtools.common.ssh.RequestFuture |
allocatePseudoTerminal(java.lang.String type) |
com.sshtools.common.ssh.RequestFuture |
allocatePseudoTerminal(java.lang.String type,
int cols,
int rows) |
com.sshtools.common.ssh.RequestFuture |
allocatePseudoTerminal(java.lang.String type,
int cols,
int rows,
int width,
int height,
PseudoTerminalModes modes) |
com.sshtools.common.ssh.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() |
com.sshtools.common.ssh.RequestFuture |
executeCommand(java.lang.String cmd) |
com.sshtools.common.ssh.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) |
com.sshtools.common.ssh.RequestFuture |
setEnvironmentVariable(java.lang.String key,
java.lang.String val) |
void |
setSingleSession(boolean singleSession) |
com.sshtools.common.ssh.RequestFuture |
signal(java.lang.String signal)
Send a signal to the remote process.
|
com.sshtools.common.ssh.RequestFuture |
startShell() |
com.sshtools.common.ssh.RequestFuture |
startSubsystem(java.lang.String subsystem) |
addEventListener, canClose, checkWindowSpace, clearIdleState, close, close, close, createCache, disposeCache, 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, setTimeout
public 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, com.sshtools.common.ssh.ChannelRequestFuture closeFuture, boolean autoConsume)
public boolean isSingleSession()
public void setSingleSession(boolean singleSession)
protected void onChannelFree()
onChannelFree
in class com.sshtools.synergy.ssh.ChannelNG<SshClientContext>
protected byte[] createChannel() throws java.io.IOException
createChannel
in class com.sshtools.synergy.ssh.ChannelNG<SshClientContext>
java.io.IOException
protected byte[] openChannel(byte[] requestdata) throws com.sshtools.common.nio.WriteOperationRequest, com.sshtools.common.ssh.ChannelOpenException
openChannel
in class com.sshtools.synergy.ssh.ChannelNG<SshClientContext>
com.sshtools.common.nio.WriteOperationRequest
com.sshtools.common.ssh.ChannelOpenException
protected void onChannelOpenConfirmation()
onChannelOpenConfirmation
in class com.sshtools.synergy.ssh.ChannelNG<SshClientContext>
protected void onChannelError(java.lang.Throwable e)
onChannelError
in class com.sshtools.synergy.ssh.ChannelNG<SshClientContext>
protected void onChannelClosed()
onChannelClosed
in class com.sshtools.synergy.ssh.ChannelNG<SshClientContext>
protected void onChannelOpen()
onChannelOpen
in class com.sshtools.synergy.ssh.ChannelNG<SshClientContext>
public com.sshtools.common.ssh.RequestFuture allocatePseudoTerminal(java.lang.String type)
public com.sshtools.common.ssh.RequestFuture allocatePseudoTerminal(java.lang.String type, int cols, int rows)
public com.sshtools.common.ssh.RequestFuture allocatePseudoTerminal(java.lang.String type, int cols, int rows, PseudoTerminalModes modes)
public void changeTerminalDimensions(int cols, int rows, int width, int height)
public com.sshtools.common.ssh.RequestFuture signal(java.lang.String signal)
ABRT ALRM FPE HUP ILL INT KILL PIPE QUIT SEGV TERM USR1 USR2
signal
- java.io.IOException
public com.sshtools.common.ssh.RequestFuture allocatePseudoTerminal(java.lang.String type, int cols, int rows, int width, int height, PseudoTerminalModes modes)
public com.sshtools.common.ssh.RequestFuture setEnvironmentVariable(java.lang.String key, java.lang.String val)
public com.sshtools.common.ssh.RequestFuture startShell()
public com.sshtools.common.ssh.RequestFuture executeCommand(java.lang.String cmd)
public com.sshtools.common.ssh.RequestFuture executeCommand(java.lang.String cmd, java.lang.String charset)
public com.sshtools.common.ssh.RequestFuture startSubsystem(java.lang.String subsystem)
protected void onChannelClosing()
onChannelClosing
in class com.sshtools.synergy.ssh.ChannelNG<SshClientContext>
protected void onChannelRequest(java.lang.String requesttype, boolean wantreply, byte[] requestdata)
onChannelRequest
in class com.sshtools.synergy.ssh.ChannelNG<SshClientContext>
public int getExitCode()
public boolean isFlowControlEnabled()
public java.lang.String getExitSignalInfo()
protected void onRemoteEOF()
onRemoteEOF
in class com.sshtools.synergy.ssh.ChannelNG<SshClientContext>
protected void onLocalEOF()
onLocalEOF
in class com.sshtools.synergy.ssh.ChannelNG<SshClientContext>
public int getMaximumRemotePacketLength()
public int getMaximumLocalPacketLength()
Copyright © 2023. All rights reserved.