Class NettyIoServiceFactory

  • All Implemented Interfaces:
    java.io.Closeable, java.lang.AutoCloseable, java.nio.channels.Channel, org.apache.sshd.common.Closeable, org.apache.sshd.common.io.IoServiceEventListenerManager, org.apache.sshd.common.io.IoServiceFactory

    public class NettyIoServiceFactory
    extends org.apache.sshd.common.util.closeable.AbstractCloseable
    implements org.apache.sshd.common.io.IoServiceFactory
    • Nested Class Summary

      • Nested classes/interfaces inherited from class org.apache.sshd.common.util.closeable.AbstractCloseable

        org.apache.sshd.common.util.closeable.AbstractCloseable.State
    • Field Summary

      Fields 
      Modifier and Type Field Description
      protected boolean closeEventLoopGroup  
      private org.apache.sshd.common.io.IoServiceEventListener eventListener  
      protected io.netty.channel.EventLoopGroup eventLoopGroup  
      protected org.apache.sshd.common.FactoryManager manager  
      • Fields inherited from class org.apache.sshd.common.util.closeable.AbstractCloseable

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

        log
    • Constructor Summary

      Constructors 
      Constructor Description
      NettyIoServiceFactory​(org.apache.sshd.common.FactoryManager manager)  
      NettyIoServiceFactory​(org.apache.sshd.common.FactoryManager manager, io.netty.channel.EventLoopGroup group)  
    • Method Summary

      All Methods Instance Methods Concrete Methods 
      Modifier and Type Method Description
      org.apache.sshd.common.io.IoAcceptor createAcceptor​(org.apache.sshd.common.io.IoHandler handler)  
      org.apache.sshd.common.io.IoConnector createConnector​(org.apache.sshd.common.io.IoHandler handler)  
      protected org.apache.sshd.common.future.CloseFuture doCloseGracefully()  
      protected void doCloseImmediately()  
      org.apache.sshd.common.io.IoServiceEventListener getIoServiceEventListener()  
      void setIoServiceEventListener​(org.apache.sshd.common.io.IoServiceEventListener listener)  
      • Methods inherited from class org.apache.sshd.common.util.closeable.AbstractCloseable

        addCloseFutureListener, builder, close, getFutureLock, isClosed, isClosing, preClose, removeCloseFutureListener
      • Methods inherited from class org.apache.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 class java.lang.Object

        clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
      • Methods inherited from interface org.apache.sshd.common.Closeable

        addCloseFutureListener, close, close, isClosed, isClosing, isOpen, removeCloseFutureListener
    • Field Detail

      • eventLoopGroup

        protected final io.netty.channel.EventLoopGroup eventLoopGroup
      • closeEventLoopGroup

        protected final boolean closeEventLoopGroup
      • manager

        protected final org.apache.sshd.common.FactoryManager manager
      • eventListener

        private org.apache.sshd.common.io.IoServiceEventListener eventListener
    • Constructor Detail

      • NettyIoServiceFactory

        public NettyIoServiceFactory​(org.apache.sshd.common.FactoryManager manager)
      • NettyIoServiceFactory

        public NettyIoServiceFactory​(org.apache.sshd.common.FactoryManager manager,
                                     io.netty.channel.EventLoopGroup group)
    • Method Detail

      • getIoServiceEventListener

        public org.apache.sshd.common.io.IoServiceEventListener getIoServiceEventListener()
        Specified by:
        getIoServiceEventListener in interface org.apache.sshd.common.io.IoServiceEventListenerManager
      • setIoServiceEventListener

        public void setIoServiceEventListener​(org.apache.sshd.common.io.IoServiceEventListener listener)
        Specified by:
        setIoServiceEventListener in interface org.apache.sshd.common.io.IoServiceEventListenerManager
      • createConnector

        public org.apache.sshd.common.io.IoConnector createConnector​(org.apache.sshd.common.io.IoHandler handler)
        Specified by:
        createConnector in interface org.apache.sshd.common.io.IoServiceFactory
      • createAcceptor

        public org.apache.sshd.common.io.IoAcceptor createAcceptor​(org.apache.sshd.common.io.IoHandler handler)
        Specified by:
        createAcceptor in interface org.apache.sshd.common.io.IoServiceFactory
      • doCloseGracefully

        protected org.apache.sshd.common.future.CloseFuture doCloseGracefully()
        Overrides:
        doCloseGracefully in class org.apache.sshd.common.util.closeable.AbstractCloseable
      • doCloseImmediately

        protected void doCloseImmediately()
        Overrides:
        doCloseImmediately in class org.apache.sshd.common.util.closeable.AbstractCloseable