Class NettyAwareChannelSubsystem

  • All Implemented Interfaces:
    Closeable, AutoCloseable, Channel, org.opendaylight.netconf.shaded.sshd.client.channel.ClientChannel, org.opendaylight.netconf.shaded.sshd.client.session.ClientSessionHolder, org.opendaylight.netconf.shaded.sshd.common.AttributeRepository, org.opendaylight.netconf.shaded.sshd.common.AttributeStore, org.opendaylight.netconf.shaded.sshd.common.channel.Channel, org.opendaylight.netconf.shaded.sshd.common.channel.ChannelListenerManager, org.opendaylight.netconf.shaded.sshd.common.channel.StreamingChannel, org.opendaylight.netconf.shaded.sshd.common.channel.throttle.ChannelStreamWriterResolver, org.opendaylight.netconf.shaded.sshd.common.channel.throttle.ChannelStreamWriterResolverManager, org.opendaylight.netconf.shaded.sshd.common.Closeable, org.opendaylight.netconf.shaded.sshd.common.PropertyResolver, org.opendaylight.netconf.shaded.sshd.common.session.SessionContextHolder, org.opendaylight.netconf.shaded.sshd.common.session.SessionHolder<org.opendaylight.netconf.shaded.sshd.common.session.Session>, org.opendaylight.netconf.shaded.sshd.common.util.threads.ExecutorServiceCarrier

    @Beta
    public class NettyAwareChannelSubsystem
    extends org.opendaylight.netconf.shaded.sshd.client.channel.ChannelSubsystem
    A ChannelSubsystem for subsystem which routes incoming data to a particular ChannelHandlerContext.
    • Nested Class Summary

      • Nested classes/interfaces inherited from class org.opendaylight.netconf.shaded.sshd.common.channel.AbstractChannel

        org.opendaylight.netconf.shaded.sshd.common.channel.AbstractChannel.GracefulChannelCloseable, org.opendaylight.netconf.shaded.sshd.common.channel.AbstractChannel.GracefulState
      • Nested classes/interfaces inherited from class org.opendaylight.netconf.shaded.sshd.common.util.closeable.AbstractCloseable

        org.opendaylight.netconf.shaded.sshd.common.util.closeable.AbstractCloseable.State
      • Nested classes/interfaces inherited from interface org.opendaylight.netconf.shaded.sshd.common.AttributeRepository

        org.opendaylight.netconf.shaded.sshd.common.AttributeRepository.AttributeKey<T extends Object>
      • Nested classes/interfaces inherited from interface org.opendaylight.netconf.shaded.sshd.common.channel.StreamingChannel

        org.opendaylight.netconf.shaded.sshd.common.channel.StreamingChannel.Streaming
    • Field Summary

      • Fields inherited from class org.opendaylight.netconf.shaded.sshd.client.channel.AbstractClientChannel

        asyncErr, asyncIn, asyncOut, err, exitSignalHolder, exitStatusHolder, in, invertedErr, invertedIn, invertedOut, opened, openFailureLang, openFailureMsg, openFailureReason, openFuture, out, streaming
      • Fields inherited from class org.opendaylight.netconf.shaded.sshd.common.channel.AbstractChannel

        channelListenerProxy, channelListeners, closeSignaled, eofReceived, eofSent, gracefulFuture, gracefulState, initialized, RESPONSE_BUFFER_GROWTH_FACTOR, service, unregisterSignaled
      • Fields inherited from class org.opendaylight.netconf.shaded.sshd.common.util.closeable.AbstractCloseable

        closeFuture, futureLock, state
      • Fields inherited from class org.opendaylight.netconf.shaded.sshd.common.util.logging.AbstractLoggingBean

        log
      • Fields inherited from interface org.opendaylight.netconf.shaded.sshd.common.channel.Channel

        CHANNEL_EXEC, CHANNEL_SHELL, CHANNEL_SUBSYSTEM
      • Fields inherited from interface org.opendaylight.netconf.shaded.sshd.common.channel.throttle.ChannelStreamWriterResolver

        NONE
      • Fields inherited from interface org.opendaylight.netconf.shaded.sshd.common.PropertyResolver

        EMPTY
    • Method Summary

      All Methods Instance Methods Concrete Methods 
      Modifier and Type Method Description
      void close()  
      protected void doWriteData​(byte[] data, int off, long len)  
      protected void doWriteExtendedData​(byte[] data, int off, long len)  
      • Methods inherited from class org.opendaylight.netconf.shaded.sshd.client.channel.ChannelSubsystem

        doOpen, getSubsystem, handleFailure, handleSuccess, onClose, toString
      • Methods inherited from class org.opendaylight.netconf.shaded.sshd.client.channel.ChannelSession

        closeImmediately0, getInnerCloseable, handleInternalRequest, handleXonXoff, pumpInputStream, securedRead
      • Methods inherited from class org.opendaylight.netconf.shaded.sshd.client.channel.AbstractClientChannel

        addChannelSignalRequestHandlers, getAsyncErr, getAsyncIn, getAsyncOut, getChannelState, getChannelType, getErr, getExitSignal, getExitStatus, getIn, getInvertedErr, getInvertedIn, getInvertedOut, getOut, getStreaming, handleOpenFailure, handleOpenSuccess, handleWindowAdjust, open, open, setErr, setIn, setOut, setStreaming, updateCurrentChannelState, waitFor
      • Methods inherited from class org.opendaylight.netconf.shaded.sshd.common.channel.AbstractChannel

        addChannelListener, addPendingRequest, addRequestHandler, attributeKeys, clearAttributes, computeAttributeIfAbsent, configureWindow, getAttribute, getAttributesCount, getChannelListenerProxy, getChannelStreamWriterResolver, getExecutorService, getId, getLocalWindow, getParentPropertyResolver, getProperties, getRecipient, getRemoteWindow, getRequestHandlers, getSession, handleChannelRegistrationResult, handleChannelRequest, handleChannelUnregistration, handleClose, handleData, handleEof, handleExtendedData, handleRequest, handleUnknownChannelRequest, init, invokeChannelSignaller, isEofSent, isEofSignalled, isInitialized, notifyStateChanged, notifyStateChanged, preClose, removeAttribute, removeChannelListener, removePendingRequest, removeRequestHandler, resolveChannelStreamWriterResolver, sendEof, sendResponse, sendWindowAdjust, setAttribute, setChannelStreamWriterResolver, setRecipient, signalChannelClosed, signalChannelClosed, signalChannelInitialized, signalChannelInitialized, signalChannelOpenFailure, signalChannelOpenFailure, signalChannelOpenSuccess, signalChannelOpenSuccess, validateIncomingDataSize, writePacket
      • Methods inherited from class org.opendaylight.netconf.shaded.sshd.common.util.closeable.AbstractInnerCloseable

        doCloseGracefully, doCloseImmediately
      • Methods inherited from class org.opendaylight.netconf.shaded.sshd.common.util.closeable.AbstractCloseable

        addCloseFutureListener, builder, close, getFutureLock, isClosed, isClosing, removeCloseFutureListener
      • Methods inherited from class org.opendaylight.netconf.shaded.sshd.common.util.logging.AbstractLoggingBean

        debug, debug, debug, debug, debug, error, error, error, error, error, getSimplifiedLogger, info, info, warn, warn, warn, warn, warn, warn, warn, warn
      • Methods inherited from interface org.opendaylight.netconf.shaded.sshd.common.AttributeRepository

        attributeKeys, getAttribute, getAttributesCount
      • Methods inherited from interface org.opendaylight.netconf.shaded.sshd.common.AttributeStore

        clearAttributes, computeAttributeIfAbsent, removeAttribute, setAttribute
      • Methods inherited from interface org.opendaylight.netconf.shaded.sshd.common.channel.Channel

        addRequestHandler, addRequestHandlers, getId, getLocalWindow, getRecipient, getRemoteWindow, getRequestHandlers, handleChannelRegistrationResult, handleChannelUnregistration, handleClose, handleData, handleEof, handleExtendedData, handleRequest, init, isEofSignalled, isInitialized, removeRequestHandler, removeRequestHandlers, resolveAttribute, writePacket
      • Methods inherited from interface org.opendaylight.netconf.shaded.sshd.common.channel.ChannelListenerManager

        addChannelListener, getChannelListenerProxy, removeChannelListener
      • Methods inherited from interface org.opendaylight.netconf.shaded.sshd.common.channel.throttle.ChannelStreamWriterResolverManager

        getChannelStreamWriterResolver, resolveChannelStreamWriter, resolveChannelStreamWriterResolver, setChannelStreamWriterResolver
      • Methods inherited from interface org.opendaylight.netconf.shaded.sshd.client.channel.ClientChannel

        getClientSession, waitFor
      • Methods inherited from interface org.opendaylight.netconf.shaded.sshd.common.Closeable

        addCloseFutureListener, close, isClosed, isClosing, isOpen, removeCloseFutureListener
      • Methods inherited from interface org.opendaylight.netconf.shaded.sshd.common.PropertyResolver

        getBoolean, getBooleanProperty, getCharset, getInteger, getIntProperty, getLong, getLongProperty, getObject, getParentPropertyResolver, getProperties, getString, getStringProperty, isEmpty
      • Methods inherited from interface org.opendaylight.netconf.shaded.sshd.common.session.SessionHolder

        getSession, getSessionContext
    • Constructor Detail

      • NettyAwareChannelSubsystem

        public NettyAwareChannelSubsystem​(String subsystem,
                                          io.netty.channel.ChannelHandlerContext ctx)
    • Method Detail

      • doWriteData

        protected void doWriteData​(byte[] data,
                                   int off,
                                   long len)
                            throws IOException
        Overrides:
        doWriteData in class org.opendaylight.netconf.shaded.sshd.client.channel.AbstractClientChannel
        Throws:
        IOException
      • doWriteExtendedData

        protected void doWriteExtendedData​(byte[] data,
                                           int off,
                                           long len)
                                    throws IOException
        Overrides:
        doWriteExtendedData in class org.opendaylight.netconf.shaded.sshd.client.channel.AbstractClientChannel
        Throws:
        IOException
      • close

        public void close()