| Modifier and Type | Field and Description |
|---|---|
| private final AtomicReference | |
| private final AtomicBoolean | |
| protected final Map | channels
Map of channels keyed by the identifier |
| public static final String | DEFAULT_SESSION_IGNORE_HEARTBEAT_STRING
Used in |
| private final AtomicReference | |
| private ScheduledFuture | |
| protected final AtomicLong | |
| private final PortForwardingEventListener | |
| private final Collection | |
| private final Collection | |
| protected final AtomicLong | nextChannelId
Next channel identifier - a UINT32 represented as a long |
| private final Map | |
| public static final IntUnaryOperator | RESPONSE_BUFFER_GROWTH_FACTOR
Default growth factor function used to resize response buffers |
| private final AbstractSession | |
| private UnknownChannelReferenceHandler | |
| private final AtomicReference |
| Access | Constructor and Description |
|---|---|
| protected |
| Modifier and Type | Method and Description |
|---|---|
| public void | addPortForwardingEventListener(PortForwardingEventListener
The listener)PortForwardingEventListener to add - never nullImplements org. Add a port forwarding listener |
| public boolean | |
| public void | channelClose(Buffer
the buffer containing the packet buffer)Close a channel due to a close packet received |
| public void | |
| public void | |
| public void | channelExtendedData(Buffer
the buffer containing the data buffer)Process incoming extended data on a channel |
| public void | |
| protected void | |
| public void | |
| public void | |
| public void | |
| public void | |
| public void | channelWindowAdjust(Buffer
the buffer containing the window adjustment parameters buffer)Process a window adjust packet on a channel |
| protected AgentForwardSupport | |
| protected Forwarder | |
| protected X11ForwardSupport | |
| protected void | |
| public AgentForwardSupport | |
| protected Channel | Returns: the target channelThe command being processed for the channel cmd, Buffer the incoming packet buffer)Retrieve the channel designated by the given packet |
| protected Channel | |
| public Collection | |
| public Forwarder | getForwarder()
Implements org. Retrieve the forwarder instance |
| protected Closeable | |
| protected long | |
| public PortForwardingEventListener | |
| public Map | getProperties()
Implements org. A map of properties that can be used to configure the SSH server or client. |
| public Collection | |
| public AbstractSession | |
| public UnknownChannelReferenceHandler | |
| public X11ForwardSupport | |
| protected IoWriteFuture | Returns: AnIoWriteFuture representing the sent packet - Note: if no reply sent then an
"empty" future is returned - i.e., any added listeners are triggered immediately with
a synthetic "success"The request buffer)BufferProcess global requests |
| protected IoWriteFuture | |
| public boolean | |
| protected void | preClose()
Overrides org. preClose is guaranteed to be called before doCloseGracefully or doCloseImmediately. |
| public void | process(int
The incoming command type cmd, Buffer The buffer)Buffer containing optional command parametersImplements org. Service the request. |
| public long | registerChannel(Channel
The channel)Channel to registerImplements org. Register a newly created channel with a new unique identifier |
| public void | removePortForwardingEventListener(PortForwardingEventListener
The listener)PortForwardingEventListener to remove - ignored if nullImplements org. Remove a port forwarding listener |
| public boolean | |
| protected void | |
| protected void | |
| public UnknownChannelReferenceHandler | resolveUnknownChannelReferenceHandler()
Implements org. Check if current manager has a specific handler set for it - if not, try and resolve one from the "parent" container (if any) |
| protected IoWriteFuture | |
| protected IoWriteFuture | |
| protected boolean | |
| public void | setAllowMoreSessions(boolean allow)
Implements org.
|
| public void | setUnknownChannelReferenceHandler(UnknownChannelReferenceHandler
The handler)UnknownChannelReferenceHandlerManager to use - if null then any reference to
unknown channel causes an SshChannelNotFoundExceptionImplements org.
|
| public void | |
| protected synchronized ScheduledFuture | |
| protected synchronized void | |
| public String | |
| public void | unregisterChannel(Channel
the channel channel)Implements org. Remove this channel from the list of managed channels |
| agentForwardHolder | back to summary |
|---|---|
| private final AtomicReference<AgentForwardSupport> agentForwardHolder | |
| allowMoreSessions | back to summary |
|---|---|
| private final AtomicBoolean allowMoreSessions | |
| channels | back to summary |
|---|---|
| protected final Map<Long, Channel> channels Map of channels keyed by the identifier | |
| DEFAULT_SESSION_IGNORE_HEARTBEAT_STRING | back to summary |
|---|---|
| public static final String DEFAULT_SESSION_IGNORE_HEARTBEAT_STRING Used in | |
| forwarderHolder | back to summary |
|---|---|
| private final AtomicReference<Forwarder> forwarderHolder | |
| heartBeat | back to summary |
|---|---|
| private ScheduledFuture<?> heartBeat | |
| heartbeatCount | back to summary |
|---|---|
| protected final AtomicLong heartbeatCount | |
| listenerProxy | back to summary |
|---|---|
| private final PortForwardingEventListener listenerProxy | |
| listeners | back to summary |
|---|---|
| private final Collection<PortForwardingEventListener> listeners | |
| managersHolder | back to summary |
|---|---|
| private final Collection<PortForwardingEventListenerManager> managersHolder | |
| nextChannelId | back to summary |
|---|---|
| protected final AtomicLong nextChannelId Next channel identifier - a UINT32 represented as a long | |
| properties | back to summary |
|---|---|
| private final Map<String, Object> properties | |
| RESPONSE_BUFFER_GROWTH_FACTOR | back to summary |
|---|---|
| public static final IntUnaryOperator RESPONSE_BUFFER_GROWTH_FACTOR Default growth factor function used to resize response buffers | |
| sessionInstance | back to summary |
|---|---|
| private final AbstractSession sessionInstance | |
| unknownChannelReferenceHandler | back to summary |
|---|---|
| private UnknownChannelReferenceHandler unknownChannelReferenceHandler | |
| x11ForwardHolder | back to summary |
|---|---|
| private final AtomicReference<X11ForwardSupport> x11ForwardHolder | |
| AbstractConnectionService | back to summary |
|---|---|
| protected AbstractConnectionService(AbstractSession session) | |
| addPortForwardingEventListener | back to summary |
|---|---|
| public void addPortForwardingEventListener(PortForwardingEventListener listener) Implements org. Doc from org. Add a port forwarding listener
| |
| addPortForwardingEventListenerManager | back to summary |
|---|---|
public boolean addPortForwardingEventListenerManager(PortForwardingEventListenerManager manager)
| |
| channelClose | back to summary |
|---|---|
| public void channelClose(Buffer buffer) throws IOException Close a channel due to a close packet received
| |
| channelData | back to summary |
|---|---|
| public void channelData(Buffer buffer) throws IOException Process incoming data on a channel
| |
| channelEof | back to summary |
|---|---|
| public void channelEof(Buffer buffer) throws IOException Process end of file on a channel
| |
| channelExtendedData | back to summary |
|---|---|
| public void channelExtendedData(Buffer buffer) throws IOException Process incoming extended data on a channel
| |
| channelFailure | back to summary |
|---|---|
| public void channelFailure(Buffer buffer) throws IOException Process a failure on a channel
| |
| channelOpen | back to summary |
|---|---|
| protected void channelOpen(Buffer buffer) throws Exception | |
| channelOpenConfirmation | back to summary |
|---|---|
| public void channelOpenConfirmation(Buffer buffer) throws IOException | |
| channelOpenFailure | back to summary |
|---|---|
| public void channelOpenFailure(Buffer buffer) throws IOException | |
| channelRequest | back to summary |
|---|---|
| public void channelRequest(Buffer buffer) throws IOException Service a request on a channel
| |
| channelSuccess | back to summary |
|---|---|
| public void channelSuccess(Buffer buffer) throws IOException Process a success on a channel
| |
| channelWindowAdjust | back to summary |
|---|---|
| public void channelWindowAdjust(Buffer buffer) throws IOException Process a window adjust packet on a channel
| |
| createAgentForwardSupport | back to summary |
|---|---|
| protected AgentForwardSupport createAgentForwardSupport(Session session) | |
| createForwardingFilter | back to summary |
|---|---|
| protected Forwarder createForwardingFilter(Session session) | |
| createX11ForwardSupport | back to summary |
|---|---|
| protected X11ForwardSupport createX11ForwardSupport(Session session) | |
| futureDone | back to summary |
|---|---|
| protected void futureDone(HasException future) | |
| getAgentForwardSupport | back to summary |
|---|---|
| public AgentForwardSupport getAgentForwardSupport() Implements org.
| |
| getChannel | back to summary |
|---|---|
| protected Channel getChannel(byte cmd, Buffer buffer) throws IOException Retrieve the channel designated by the given packet
| |
| getChannel | back to summary |
|---|---|
| protected Channel getChannel(byte cmd, long recipient, Buffer buffer) throws IOException | |
| getChannels | back to summary |
|---|---|
| public Collection | |
| getForwarder | back to summary |
|---|---|
| public Forwarder getForwarder() Implements org. Doc from org. Retrieve the forwarder instance | |
| getInnerCloseable | back to summary |
|---|---|
| protected Closeable getInnerCloseable() Implements abstract org.
| |
| getNextChannelId | back to summary |
|---|---|
| protected long getNextChannelId() | |
| getPortForwardingEventListenerProxy | back to summary |
|---|---|
| public PortForwardingEventListener getPortForwardingEventListenerProxy() Implements org.
| |
| getProperties | back to summary |
|---|---|
| public Map Implements org. Doc from org. A map of properties that can be used to configure the SSH server or client. This map will never be changed by either the server or client and is not supposed to be changed at runtime (changes are not bound to have any effect on a running client or server), though it may affect the creation of sessions later as these values are usually not cached Note the type of the mapped property should match the expected configuration value type -
| |
| getRegisteredManagers | back to summary |
|---|---|
| public Collection Implements org.
| |
| getSession | back to summary |
|---|---|
| public AbstractSession getSession() Implements org.
| |
| getUnknownChannelReferenceHandler | back to summary |
|---|---|
| public UnknownChannelReferenceHandler getUnknownChannelReferenceHandler() Implements org.
| |
| getX11ForwardSupport | back to summary |
|---|---|
| public X11ForwardSupport getX11ForwardSupport() Implements org.
| |
| globalRequest | back to summary |
|---|---|
| protected IoWriteFuture globalRequest(Buffer buffer) throws Exception Process global requests
| |
| handleUnknownRequest | back to summary |
|---|---|
| protected IoWriteFuture handleUnknownRequest(Buffer buffer, String req, boolean wantReply) throws IOException | |
| isAllowMoreSessions | back to summary |
|---|---|
| public boolean isAllowMoreSessions() Implements org.
| |
| preClose | back to summary |
|---|---|
| protected void preClose() Overrides org. Doc from org. preClose is guaranteed to be called before doCloseGracefully or doCloseImmediately. When preClose() is called, isClosing() == true
| |
| process | back to summary |
|---|---|
| public void process(int cmd, Buffer buffer) throws Exception Implements org. Doc from org. Service the request. | |
| registerChannel | back to summary |
|---|---|
| public long registerChannel(Channel channel) throws IOException Implements org. Doc from org. Register a newly created channel with a new unique identifier
| |
| removePortForwardingEventListener | back to summary |
|---|---|
| public void removePortForwardingEventListener(PortForwardingEventListener listener) Implements org. Doc from org. Remove a port forwarding listener
| |
| removePortForwardingEventListenerManager | back to summary |
|---|---|
public boolean removePortForwardingEventListenerManager(PortForwardingEventListenerManager manager)
| |
| requestFailure | back to summary |
|---|---|
| protected void requestFailure(Buffer buffer) throws Exception | |
| requestSuccess | back to summary |
|---|---|
| protected void requestSuccess(Buffer buffer) throws Exception | |
| resolveUnknownChannelReferenceHandler | back to summary |
|---|---|
| public UnknownChannelReferenceHandler resolveUnknownChannelReferenceHandler() Implements org. Check if current manager has a specific handler set for it - if not, try and resolve one from the "parent" container (if any)
| |
| sendChannelOpenFailure | back to summary |
|---|---|
| protected IoWriteFuture sendChannelOpenFailure(Buffer buffer, long sender, int reasonCode, String message, String lang) throws IOException | |
| sendGlobalResponse | back to summary |
|---|---|
| protected IoWriteFuture sendGlobalResponse(Buffer buffer, String req, RequestHandler. | |
| sendHeartBeat | back to summary |
|---|---|
| protected boolean sendHeartBeat() Sends a heartbeat message/packet
| |
| setAllowMoreSessions | back to summary |
|---|---|
| public void setAllowMoreSessions(boolean allow) Implements org.
| |
| setUnknownChannelReferenceHandler | back to summary |
|---|---|
| public void setUnknownChannelReferenceHandler(UnknownChannelReferenceHandler handler) Implements org.
| |
| start | back to summary |
|---|---|
| public void start() Implements org.
| |
| startHeartBeat | back to summary |
|---|---|
| protected synchronized ScheduledFuture | |
| stopHeartBeat | back to summary |
|---|---|
| protected synchronized void stopHeartBeat() | |
| toString | back to summary |
|---|---|
| public String toString() Overrides java. Doc from java. Returns a string representation of the object.
Satisfying this method's contract implies a non- | |
| unregisterChannel | back to summary |
|---|---|
| public void unregisterChannel(Channel channel) Implements org. Remove this channel from the list of managed channels | |