public class ChannelShell extends PtyCapableChannelSession
AbstractChannel.GracefulChannelCloseable, AbstractChannel.GracefulState
AbstractCloseable.State
ClientChannel.ClientChannelEvent, ClientChannel.Streaming
Modifier and Type | Field and Description |
---|---|
static boolean |
DEFAULT_REQUEST_SHELL_REPLY |
static String |
REQUEST_SHELL_REPLY
Configure whether reply for the "shell" request is required
|
DEFAULT_COLUMNS_COUNT, DEFAULT_HEIGHT, DEFAULT_PTY_MODES, DEFAULT_ROWS_COUNT, DEFAULT_WIDTH
asyncErr, asyncIn, asyncOut, err, exitSignalHolder, exitStatusHolder, in, invertedErr, invertedIn, invertedOut, opened, openFailureLang, openFailureMsg, openFailureReason, openFuture, out, streaming, type
channelListenerProxy, channelListeners, eof, executor, gracefulFuture, gracefulState, handlers, localWindow, remoteWindow, RESPONSE_BUFFER_GROWTH_FACTOR, service, shutdownExecutor
closeFuture, lock, state
log
CHANNEL_EXEC, CHANNEL_SHELL, CHANNEL_SUBSYSTEM
Constructor and Description |
---|
ChannelShell() |
Modifier and Type | Method and Description |
---|---|
protected void |
doOpen() |
void |
handleFailure()
Handle channel request failure
|
void |
handleSuccess()
Handle channel request success
|
doOpenPty, getPtyColumns, getPtyHeight, getPtyLines, getPtyModes, getPtyType, getPtyWidth, isAgentForwarding, isUsePty, sendWindowChange, sendWindowChange, setAgentForwarding, setEnv, setPtyColumns, setPtyHeight, setPtyLines, setPtyModes, setPtyType, setPtyWidth, setupSensibleDefaultPty, setUsePty
doCloseImmediately, handleInternalRequest, handleXonXoff, pumpInputStream, securedRead
addChannelSignalRequestHandlers, doWriteData, doWriteExtendedData, getAsyncErr, getAsyncIn, getAsyncOut, getErr, getExitSignal, getExitStatus, getIn, getInnerCloseable, getInvertedErr, getInvertedIn, getInvertedOut, getOut, getStreaming, handleOpenFailure, handleOpenSuccess, handleWindowAdjust, open, open, setErr, setIn, setOut, setStreaming, waitFor
addChannelListener, addPendingRequest, addRequestHandler, configureWindow, getChannelListenerProxy, getExecutorService, getId, getLocalWindow, getParentPropertyResolver, getProperties, getRecipient, getRemoteWindow, getSession, handleChannelRequest, handleClose, handleData, handleEof, handleExtendedData, handleRequest, handleUnknownChannelRequest, init, isEofSignalled, isShutdownOnExit, notifyStateChanged, preClose, removeChannelListener, removePendingRequest, sendEof, sendResponse, sendWindowAdjust, setEofSignalled, setExecutorService, setRecipient, setShutdownOnExit, toString, writePacket
doCloseGracefully
builder, close, isClosed, isClosing
close, isOpen
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
close
getId, getLocalWindow, getRecipient, getRemoteWindow, getSession, handleClose, handleData, handleEof, handleExtendedData, handleRequest, init
addChannelListener, getChannelListenerProxy, removeChannelListener
getParentPropertyResolver, getProperties
public static final String REQUEST_SHELL_REPLY
DEFAULT_REQUEST_SHELL_REPLY
,
Constant Field Valuespublic static final boolean DEFAULT_REQUEST_SHELL_REPLY
protected void doOpen() throws IOException
doOpen
in class ChannelSession
IOException
public void handleSuccess() throws IOException
Channel
handleSuccess
in class AbstractChannel
IOException
- If failed to handlepublic void handleFailure() throws IOException
Channel
handleFailure
in class AbstractChannel
IOException
- If failed to handleCopyright © 2008–2016 The Apache Software Foundation. All rights reserved.