Package com.sshtools.client
Class SessionChannelNG
java.lang.Object
com.sshtools.synergy.ssh.ChannelNG<SshClientContext>
com.sshtools.client.AbstractSessionChannel
com.sshtools.client.SessionChannelNG
- All Implemented Interfaces:
com.sshtools.common.ssh.Channel
,com.sshtools.common.ssh.SessionChannel
public class SessionChannelNG
extends AbstractSessionChannel
implements com.sshtools.common.ssh.SessionChannel
Implements the client side of the SSH Connection protocol session channel
-
Nested Class Summary
Nested classes/interfaces inherited from class com.sshtools.synergy.ssh.ChannelNG
com.sshtools.synergy.ssh.ChannelNG.ChannelInputStream
-
Field Summary
Fields inherited from class com.sshtools.client.AbstractSessionChannel
EXITCODE_NOT_RECEIVED, SSH_EXTENDED_DATA_STDERR
Fields inherited from class com.sshtools.synergy.ssh.ChannelNG
cache, con, connection, localWindow, remoteWindow
-
Constructor Summary
ConstructorsConstructorDescriptionSessionChannelNG
(int maximumPacketSize, com.sshtools.common.util.UnsignedInteger32 initialWindowSize, com.sshtools.common.util.UnsignedInteger32 maximumWindowSpace, com.sshtools.common.util.UnsignedInteger32 minimumWindowSpace) SessionChannelNG
(int maximumPacketSize, com.sshtools.common.util.UnsignedInteger32 initialWindowSize, com.sshtools.common.util.UnsignedInteger32 maximumWindowSpace, com.sshtools.common.util.UnsignedInteger32 minimumWindowSpace, boolean autoConsume) SessionChannelNG
(int maximumPacketSize, com.sshtools.common.util.UnsignedInteger32 initialWindowSize, com.sshtools.common.util.UnsignedInteger32 maximumWindowSpace, com.sshtools.common.util.UnsignedInteger32 minimumWindowSpace, com.sshtools.common.ssh.ChannelRequestFuture closeFuture, boolean autoConsume) SessionChannelNG
(com.sshtools.common.ssh.SshConnection con) SessionChannelNG
(com.sshtools.common.ssh.SshConnection con, boolean autoConsume) -
Method Summary
Modifier and TypeMethodDescriptionprotected boolean
com.sshtools.common.util.UnsignedInteger32
com.sshtools.common.util.UnsignedInteger32
protected void
onExtendedData
(ByteBuffer data, int type) void
Methods inherited from class com.sshtools.client.AbstractSessionChannel
allocatePseudoTerminal, allocatePseudoTerminal, allocatePseudoTerminal, allocatePseudoTerminal, changeTerminalDimensions, createChannel, executeCommand, executeCommand, getExitCode, getExitSignalInfo, getMaximumLocalPacketLength, getMaximumRemotePacketLength, isFlowControlEnabled, isSingleSession, onChannelClosed, onChannelClosing, onChannelError, onChannelFree, onChannelOpen, onChannelOpenConfirmation, onChannelRequest, onLocalEOF, onRemoteEOF, openChannel, setEnvironmentVariable, setSingleSession, signal, startShell, startSubsystem
Methods inherited from class com.sshtools.synergy.ssh.ChannelNG
addEventListener, canClose, 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, isAutoConsume, isClosed, isClosing, isConnected, isIncomingDataHalted, isLocalEOF, isOpen, isRemoteEOF, log, log, log, log, logMessage, logMessage, onChannelData, onChannelOpenFailure, onRemoteClose, onWindowAdjust, processChannelRequestResponse, registerExtendedDataType, resetIdleState, resumeIncomingData, sendChannelDataAndBlock, sendChannelDataAndBlock, sendChannelDataAndBlock, sendChannelDataAndBlock, sendChannelDataAndBlock, sendChannelDataAndBlock, sendChannelRequest, sendChannelRequest, sendData, sendEOF, sendExtendedData, sendExtendedData, sendRequestResponse, sendWindowAdjust, sendWindowAdjust, setTimeout
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
Methods inherited from interface com.sshtools.common.ssh.Channel
addEventListener, close, getChannelType, getContext, getLocalPacket, getLocalWindow, getRemoteWindow, isClosed, isLocalEOF, isRemoteEOF, sendChannelRequest, sendChannelRequest, sendData, sendWindowAdjust
Methods inherited from interface com.sshtools.common.ssh.SessionChannel
getConnection, getInputStream, getOutputStream, haltIncomingData, resumeIncomingData
-
Constructor Details
-
SessionChannelNG
public SessionChannelNG(com.sshtools.common.ssh.SshConnection con) -
SessionChannelNG
public SessionChannelNG(com.sshtools.common.ssh.SshConnection con, boolean autoConsume) -
SessionChannelNG
public SessionChannelNG(int maximumPacketSize, com.sshtools.common.util.UnsignedInteger32 initialWindowSize, com.sshtools.common.util.UnsignedInteger32 maximumWindowSpace, com.sshtools.common.util.UnsignedInteger32 minimumWindowSpace, com.sshtools.common.ssh.ChannelRequestFuture closeFuture, boolean autoConsume) -
SessionChannelNG
public SessionChannelNG(int maximumPacketSize, com.sshtools.common.util.UnsignedInteger32 initialWindowSize, com.sshtools.common.util.UnsignedInteger32 maximumWindowSpace, com.sshtools.common.util.UnsignedInteger32 minimumWindowSpace, boolean autoConsume) -
SessionChannelNG
public SessionChannelNG(int maximumPacketSize, com.sshtools.common.util.UnsignedInteger32 initialWindowSize, com.sshtools.common.util.UnsignedInteger32 maximumWindowSpace, com.sshtools.common.util.UnsignedInteger32 minimumWindowSpace)
-
-
Method Details
-
onExtendedData
- Overrides:
onExtendedData
in classcom.sshtools.synergy.ssh.ChannelNG<SshClientContext>
-
getStderrStream
-
checkWindowSpace
protected boolean checkWindowSpace()- Overrides:
checkWindowSpace
in classcom.sshtools.synergy.ssh.ChannelNG<SshClientContext>
-
getMaximumWindowSpace
public com.sshtools.common.util.UnsignedInteger32 getMaximumWindowSpace()- Specified by:
getMaximumWindowSpace
in interfacecom.sshtools.common.ssh.SessionChannel
-
getMinimumWindowSpace
public com.sshtools.common.util.UnsignedInteger32 getMinimumWindowSpace()- Specified by:
getMinimumWindowSpace
in interfacecom.sshtools.common.ssh.SessionChannel
-
onSessionOpen
public void onSessionOpen()- Specified by:
onSessionOpen
in interfacecom.sshtools.common.ssh.SessionChannel
-