Interface ConnectionService
- All Superinterfaces:
AutoCloseable, Channel, Closeable, Closeable, PortForwardingEventListenerManager, PortForwardingEventListenerManagerHolder, PropertyResolver, Service, SessionContextHolder, SessionHeartbeatController, SessionHolder<Session>, UnknownChannelReferenceHandlerManager
- All Known Implementing Classes:
AbstractConnectionService, ClientConnectionService, ServerConnectionService
public interface ConnectionService
extends Service, SessionHeartbeatController, UnknownChannelReferenceHandlerManager, PortForwardingEventListenerManager, PortForwardingEventListenerManagerHolder
Interface implementing ssh-connection service.
-
Nested Class Summary
Nested classes/interfaces inherited from interface SessionHeartbeatController
SessionHeartbeatController.HeartbeatType -
Field Summary
Fields inherited from interface PropertyResolver
EMPTY -
Method Summary
Modifier and TypeMethodDescriptionRetrieve the forwarder instancebooleanlongregisterChannel(Channel channel) Register a newly created channel with a new unique identifiervoidsetAllowMoreSessions(boolean allow) voidunregisterChannel(Channel channel) Remove this channel from the list of managed channelsMethods inherited from interface Closeable
addCloseFutureListener, close, close, isClosed, isClosing, isOpen, removeCloseFutureListenerMethods inherited from interface PortForwardingEventListenerManager
addPortForwardingEventListener, getPortForwardingEventListenerProxy, removePortForwardingEventListenerMethods inherited from interface PortForwardingEventListenerManagerHolder
addPortForwardingEventListenerManager, getRegisteredManagers, removePortForwardingEventListenerManagerMethods inherited from interface PropertyResolver
getBoolean, getBooleanProperty, getCharset, getInteger, getIntProperty, getLong, getLongProperty, getObject, getProperties, getString, getStringProperty, isEmptyMethods inherited from interface Service
getParentPropertyResolver, process, startMethods inherited from interface SessionHeartbeatController
disableSessionHeartbeat, getSessionHeartbeatInterval, getSessionHeartbeatType, setSessionHeartbeat, setSessionHeartbeatMethods inherited from interface SessionHolder
getSession, getSessionContextMethods inherited from interface UnknownChannelReferenceHandlerManager
getUnknownChannelReferenceHandler, resolveUnknownChannelReferenceHandler, setUnknownChannelReferenceHandler
-
Method Details
-
registerChannel
Register a newly created channel with a new unique identifier- Parameters:
channel- TheChannelto register- Returns:
- The assigned id of this channel - a UINT32 represented as a
long - Throws:
IOException- If failed to initialize and register the channel
-
unregisterChannel
-
getForwarder
-
getAgentForwardSupport
AgentForwardSupport getAgentForwardSupport() -
getX11ForwardSupport
X11ForwardSupport getX11ForwardSupport() -
isAllowMoreSessions
boolean isAllowMoreSessions() -
setAllowMoreSessions
void setAllowMoreSessions(boolean allow)
-