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:
Channel,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
ChannelNG.ChannelInputStream -
Field Summary
Fields inherited from class com.sshtools.client.AbstractSessionChannel
EXITCODE_NOT_RECEIVED, SSH_EXTENDED_DATA_STDERRFields inherited from class com.sshtools.synergy.ssh.ChannelNG
cache, con, connection, localWindow, paused, 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, ChannelRequestFuture closeFuture, boolean autoConsume) SessionChannelNG(SshConnection con, boolean autoConsume) -
Method Summary
Modifier and TypeMethodDescriptionprotected booleancom.sshtools.common.util.UnsignedInteger32com.sshtools.common.util.UnsignedInteger32protected voidonExtendedData(ByteBuffer data, int type) voidMethods inherited from class com.sshtools.client.AbstractSessionChannel
allocatePseudoTerminal, 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, startSubsystemMethods 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, removeEventListener, resetIdleState, resumeIncomingData, sendChannelDataAndBlock, sendChannelDataAndBlock, sendChannelDataAndBlock, sendChannelDataAndBlock, sendChannelDataAndBlock, sendChannelDataAndBlock, sendChannelRequest, sendChannelRequest, sendData, sendEOF, sendExtendedData, sendExtendedData, sendRequestResponse, sendWindowAdjust, sendWindowAdjust, setAutoconsume, setTimeoutMethods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitMethods inherited from interface com.sshtools.common.ssh.Channel
addEventListener, close, getChannelType, getContext, getLocalPacket, getLocalWindow, getRemoteWindow, isClosed, isLocalEOF, isRemoteEOF, removeEventListener, sendChannelRequest, sendChannelRequest, sendData, sendWindowAdjustMethods inherited from interface com.sshtools.common.ssh.SessionChannel
getConnection, getInputStream, getOutputStream, haltIncomingData, resumeIncomingData
-
Constructor Details
-
SessionChannelNG
-
SessionChannelNG
-
SessionChannelNG
public SessionChannelNG(int maximumPacketSize, com.sshtools.common.util.UnsignedInteger32 initialWindowSize, com.sshtools.common.util.UnsignedInteger32 maximumWindowSpace, com.sshtools.common.util.UnsignedInteger32 minimumWindowSpace, 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:
onExtendedDatain classChannelNG<SshClientContext>
-
getStderrStream
-
checkWindowSpace
protected boolean checkWindowSpace()- Overrides:
checkWindowSpacein classChannelNG<SshClientContext>
-
getMaximumWindowSpace
public com.sshtools.common.util.UnsignedInteger32 getMaximumWindowSpace()- Specified by:
getMaximumWindowSpacein interfaceSessionChannel
-
getMinimumWindowSpace
public com.sshtools.common.util.UnsignedInteger32 getMinimumWindowSpace()- Specified by:
getMinimumWindowSpacein interfaceSessionChannel
-
onSessionOpen
public void onSessionOpen()- Specified by:
onSessionOpenin interfaceSessionChannel
-