| Modifier and Type | Class and Description |
|---|---|
| public class | |
| protected static enum | |
| public static interface | AbstractChannel.
A |
| Modifier and Type | Field and Description |
|---|---|
| private final Map | |
| protected final ChannelListener | |
| protected final Collection | channelListeners
Channel events listener |
| private ChannelStreamWriterResolver | |
| protected final AtomicBoolean | |
| public static final AbstractChannel. | DEFAULT_PACKET_VALIDATOR
A default |
| private AtomicReference | |
| protected final AtomicBoolean | |
| protected final AtomicBoolean | eofSent
Deprecated
since 2.10.1
Obsolete and unused; present only for API backwards compatibility.
|
| private CloseableExecutorService | |
| protected final DefaultCloseFuture | |
| protected AtomicReference | |
| private long | |
| protected final AtomicBoolean | |
| private final LocalWindow | |
| private AbstractChannel. | |
| private final Map | pendingRequests
A |
| private final Map | |
| private long | |
| private final RemoteWindow | |
| private final List | |
| public static final IntUnaryOperator | RESPONSE_BUFFER_GROWTH_FACTOR
Default growth factor function used to resize response buffers |
| protected ConnectionService | |
| private Session | |
| protected final AtomicBoolean |
| Access | Constructor and Description |
|---|---|
| protected | |
| protected | |
| protected | |
| protected | AbstractChannel(String discriminator, boolean client, Collection<? extends RequestHandler<Channel>> handlers, CloseableExecutorService executorService)
|
| Modifier and Type | Method and Description |
|---|---|
| public void | addChannelListener(ChannelListener
The listener)ChannelListener to add - not nullImplements org. Add a channel listener |
| protected Date | Returns: The allocatedDate timestamp - null if no reply is expected (in
which case the request is not tracked)The request type request, boolean true if reply is expectedAdd a channel request to the tracked pending ones if reply is expected |
| public void | addRequestHandler(RequestHandler<Channel> handler)
Implements org.
|
| public Collection | |
| public void | clearAttributes()
Implements org. Removes all currently stored user-defined attributes |
| public <T> T | computeAttributeIfAbsent(AttributeRepository.
The key of the attribute; must not be key,null.The (never resolver)null) mapping function to use if value not already mapped. If returns
null then value is not mapped to the provided key.Overrides default org. If the specified key is not already associated with a value (or is mapped to |
| protected void | |
| protected abstract void | |
| protected abstract void | |
| public <T> T | getAttribute(AttributeRepository.
The key of the attribute; must not be keynull.Implements org. Returns the value of the user-defined attribute. |
| public int | |
| public long | |
| public ChannelListener | |
| public ChannelStreamWriterResolver | |
| public CloseableExecutorService | |
| protected Closeable | |
| public LocalWindow | |
| public AbstractChannel. | |
| public PropertyResolver | |
| public Map | getProperties()
Implements org. A map of properties that can be used to configure the SSH server or client. |
| public long | |
| public RemoteWindow | |
| public List | |
| public Session | |
| public void | handleChannelRegistrationResult(ConnectionService
The service, Session ConnectionService through which the channel is registeredThe session, long Session associated with the channelThe locally assigned channel identifier (UINT32 represented as a channelId, boolean long)Whether registration was successful or not registered)Implements org. Invoked after being successfully registered by the connection service - should throw a |
| protected void | |
| public void | handleChannelUnregistration(ConnectionService
The service)ConnectionService through which the channel is unregisteredImplements org. Called by the connection service to inform the channel that it has bee unregistered. |
| public void | handleClose()
Implements org. Invoked when |
| public void | handleData(Buffer
The rest of the message data buffer)Buffer after decoding the channel identifiersImplements org. Invoked when |
| public void | handleEof()
Implements org. Invoked when |
| public void | handleExtendedData(Buffer
The rest of the message data buffer)Buffer after decoding the channel identifiersImplements org. Invoked when |
| public void | handleFailure()
Implements org. Invoked when |
| protected RequestHandler. | Returns: The handling result - ifnull or Unsupported and reply is required then a
failure message will be sentThe request type req, boolean Whether reply is requested wantReply, Buffer The buffer)Buffer containing extra request-specific dataCalled by |
| public void | handleRequest(Buffer
The rest of the message data buffer)Buffer after decoding the channel identifiersImplements org. Invoked when |
| public void | handleSuccess()
Implements org. Invoked when |
| protected void | handleUnknownChannelRequest(String
The request type req, boolean Whether reply is requested wantReply, Buffer The buffer)Buffer containing extra request-specific dataCalled when none of the register request handlers reported handling the request |
| public void | handleWindowAdjust(Buffer
The rest of the message data buffer)Buffer after decoding the channel identifiersImplements org. Invoked when |
| public void | init(ConnectionService
The service, Session ConnectionService through which the channel is initializedThe session, long Session associated with the channelThe locally assigned channel identifier (UINT32 represented as a id)long)Implements org. Invoked when the local channel is initial created |
| protected void | |
| public boolean | |
| public boolean | |
| public boolean | |
| protected boolean | |
| protected void | |
| protected void | |
| protected void | preClose()
Overrides org. preClose is guaranteed to be called before doCloseGracefully or doCloseImmediately. |
| public <T> T | removeAttribute(AttributeRepository.
The key of the attribute; must not be keynull.Implements org. Removes the user-defined attribute |
| public void | removeChannelListener(ChannelListener
The listener)ChannelListener to removeImplements org. Remove a channel listener |
| protected Date | Returns: The allocatedDate timestamp - null if the specified request type is not being
tracked or has not been added to the tracked ones to begin withThe request type request)Removes a channel request from the tracked ones |
| public void | |
| public ChannelStreamWriterResolver | |
| protected IoWriteFuture | Returns: TheIoWriteFuture of the sent packet - null if message not sent due to
channel state (or already sent)Sends |
| protected IoWriteFuture | |
| protected void | |
| public <T> T | setAttribute(AttributeRepository.
The key of the attribute; must not be key,null.The value of the attribute; must not be value)null.Implements org. Sets a user-defined attribute. |
| public void | |
| public void | setPacketValidator(AbstractChannel.
the validator to set, if validatornull the DEFAULT_PACKET_VALIDATOR is setSets a |
| protected void | |
| public void | |
| protected void | |
| protected void | |
| protected void | |
| protected void | |
| protected void | |
| protected void | |
| protected void | |
| public String | |
| protected long | |
| public IoWriteFuture | writePacket(Buffer
the buffer to encode and send buffer)Note the buffer must not be touched until the returned write future is completed. Implements org. Encode and send the given buffer Note for session packets the buffer has to have 5 bytes free at the beginning to allow the encoding to take place. |