public class ClientConnectionService extends AbstractConnectionService<AbstractClientSession> implements ClientSessionHolder
ssh-connection service.AbstractCloseable.Statechannels, DEFAULT_MAX_CHANNELS, MAX_CONCURRENT_CHANNELS_PROP, nextChannelId, RESPONSE_BUFFER_GROWTH_FACTORcloseFuture, lock, statelogCLOSE_WAIT_TIMEOUT, DEFAULT_CLOSE_WAIT_TIMEOUT| Constructor and Description |
|---|
ClientConnectionService(AbstractClientSession s) |
| Modifier and Type | Method and Description |
|---|---|
AgentForwardSupport |
getAgentForwardSupport() |
ClientSession |
getClientSession() |
X11ForwardSupport |
getX11ForwardSupport() |
protected IoWriteFuture |
sendHeartBeat()
Sends a heartbeat message
|
void |
start() |
protected void |
startHeartBeat() |
addPortForwardingEventListener, addPortForwardingEventListenerManager, channelClose, channelData, channelEof, channelExtendedData, channelFailure, channelOpen, channelOpenConfirmation, channelOpenFailure, channelRequest, channelSuccess, channelWindowAdjust, createAgentForwardSupport, createTcpipForwarder, createX11ForwardSupport, getChannel, getChannel, getChannels, getInnerCloseable, getNextChannelId, getPortForwardingEventListenerProxy, getRegisteredManagers, getSession, getTcpipForwarder, globalRequest, handleChannelRegistrationFailure, handleUnknownRequest, isAllowMoreSessions, preClose, process, registerChannel, removePortForwardingEventListener, removePortForwardingEventListenerManager, requestFailure, requestSuccess, sendChannelOpenFailure, sendGlobalResponse, setAllowMoreSessions, toString, unregisterChanneldoCloseGracefully, doCloseImmediatelyaddCloseFutureListener, builder, close, isClosed, isClosing, removeCloseFutureListenergetSimplifiedLoggerclone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, waitaddCloseFutureListener, close, close, close, getMaxCloseWaitTime, isClosed, isClosing, isOpen, removeCloseFutureListenerpublic ClientConnectionService(AbstractClientSession s) throws SshException
SshExceptionpublic final ClientSession getClientSession()
getClientSession in interface ClientSessionHolderClientSession usedpublic void start()
start in interface Servicestart in class AbstractConnectionService<AbstractClientSession>protected void startHeartBeat()
protected IoWriteFuture sendHeartBeat()
IoWriteFuture that can be used to wait for the
message write completionpublic AgentForwardSupport getAgentForwardSupport()
getAgentForwardSupport in interface ConnectionServicegetAgentForwardSupport in class AbstractConnectionService<AbstractClientSession>public X11ForwardSupport getX11ForwardSupport()
getX11ForwardSupport in interface ConnectionServicegetX11ForwardSupport in class AbstractConnectionService<AbstractClientSession>Copyright © 2008–2017 The Apache Software Foundation. All rights reserved.