public class ClientConnectionService extends AbstractConnectionService implements ClientSessionHolder
ssh-connection service.AbstractCloseable.StateSessionHeartbeatController.HeartbeatType| Modifier and Type | Field and Description |
|---|---|
protected ScheduledFuture<?> |
clientHeartbeat
Non-null only if using the "keep-alive" request mechanism
|
protected Duration |
heartbeatInterval |
protected Duration |
heartbeatReplyMaxWait |
protected String |
heartbeatRequest |
channels, DEFAULT_SESSION_IGNORE_HEARTBEAT_STRING, heartbeatCount, nextChannelId, RESPONSE_BUFFER_GROWTH_FACTORcloseFuture, futureLock, statelogEMPTY| Constructor and Description |
|---|
ClientConnectionService(AbstractClientSession s) |
| Modifier and Type | Method and Description |
|---|---|
AgentForwardSupport |
getAgentForwardSupport() |
ClientSession |
getClientSession() |
AbstractClientSession |
getSession() |
X11ForwardSupport |
getX11ForwardSupport() |
protected boolean |
sendHeartBeat()
Sends a heartbeat message/packet
|
void |
start() |
protected ScheduledFuture<?> |
startHeartBeat() |
protected void |
stopHeartBeat() |
addPortForwardingEventListener, addPortForwardingEventListenerManager, channelClose, channelData, channelEof, channelExtendedData, channelFailure, channelOpen, channelOpenConfirmation, channelOpenFailure, channelRequest, channelSuccess, channelWindowAdjust, createAgentForwardSupport, createForwardingFilter, createX11ForwardSupport, futureDone, getChannel, getChannel, getChannels, getForwarder, getInnerCloseable, getNextChannelId, getPortForwardingEventListenerProxy, getProperties, getRegisteredManagers, getUnknownChannelReferenceHandler, globalRequest, handleUnknownRequest, isAllowMoreSessions, preClose, process, registerChannel, removePortForwardingEventListener, removePortForwardingEventListenerManager, requestFailure, requestSuccess, resolveUnknownChannelReferenceHandler, sendChannelOpenFailure, sendGlobalResponse, setAllowMoreSessions, setUnknownChannelReferenceHandler, toString, unregisterChanneldoCloseGracefully, doCloseImmediatelyaddCloseFutureListener, builder, close, getFutureLock, isClosed, isClosing, removeCloseFutureListenerdebug, debug, debug, debug, debug, error, error, error, error, error, getSimplifiedLogger, info, info, warn, warn, warn, warn, warn, warn, warn, warnclone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, waitgetParentPropertyResolvergetSessionContextaddCloseFutureListener, close, close, close, getMaxCloseWaitTime, isClosed, isClosing, isOpen, removeCloseFutureListenerdisableSessionHeartbeat, getSessionHeartbeatInterval, getSessionHeartbeatType, setSessionHeartbeat, setSessionHeartbeatgetBoolean, getBooleanProperty, getCharset, getInteger, getIntProperty, getLong, getLongProperty, getObject, getString, getStringProperty, isEmpty, isEmptyprotected final String heartbeatRequest
protected final Duration heartbeatInterval
protected final Duration heartbeatReplyMaxWait
protected ScheduledFuture<?> clientHeartbeat
public ClientConnectionService(AbstractClientSession s) throws SshException
SshExceptionpublic final ClientSession getClientSession()
getClientSession in interface ClientSessionHolderClientSession usedpublic AbstractClientSession getSession()
getSession in interface SessionHolder<Session>getSession in class AbstractConnectionServicepublic void start()
start in interface Servicestart in class AbstractConnectionServiceprotected ScheduledFuture<?> startHeartBeat()
startHeartBeat in class AbstractConnectionServiceprotected void stopHeartBeat()
stopHeartBeat in class AbstractConnectionServiceprotected boolean sendHeartBeat()
AbstractConnectionServicesendHeartBeat in class AbstractConnectionServicetrue if heartbeat successfully sentpublic AgentForwardSupport getAgentForwardSupport()
getAgentForwardSupport in interface ConnectionServicegetAgentForwardSupport in class AbstractConnectionServicepublic X11ForwardSupport getX11ForwardSupport()
getX11ForwardSupport in interface ConnectionServicegetX11ForwardSupport in class AbstractConnectionServiceCopyright © 2008–2021 The Apache Software Foundation. All rights reserved.