Class NettyIoServiceFactory

java.lang.Object
org.apache.sshd.common.util.logging.AbstractLoggingBean
org.apache.sshd.common.util.CloseableUtils.IoBaseCloseable
org.apache.sshd.common.util.CloseableUtils.AbstractCloseable
org.aesh.terminal.ssh.netty.NettyIoServiceFactory
All Implemented Interfaces:
Closeable, AutoCloseable, Channel, org.apache.sshd.common.Closeable, org.apache.sshd.common.io.IoServiceFactory

public class NettyIoServiceFactory extends org.apache.sshd.common.util.CloseableUtils.AbstractCloseable implements org.apache.sshd.common.io.IoServiceFactory
Author:
Julien Viet
  • Nested Class Summary

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

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

    Fields inherited from class org.apache.sshd.common.util.CloseableUtils.AbstractCloseable

    closeFuture, lock, state

    Fields inherited from class org.apache.sshd.common.util.logging.AbstractLoggingBean

    log
  • Constructor Summary

    Constructors
    Constructor
    Description
     
    NettyIoServiceFactory(io.netty.channel.EventLoopGroup group)
     
    NettyIoServiceFactory(io.netty.channel.EventLoopGroup group, NettyIoHandlerBridge handlerBridge)
     
  • Method Summary

    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
     
    protected void
     

    Methods inherited from class org.apache.sshd.common.util.CloseableUtils.AbstractCloseable

    builder, close, isClosed, isClosing, preClose

    Methods inherited from class org.apache.sshd.common.util.CloseableUtils.IoBaseCloseable

    close, isOpen

    Methods inherited from class Object

    clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait

    Methods inherited from interface Channel

    close, isOpen

    Methods inherited from interface org.apache.sshd.common.Closeable

    close, isClosed, isClosing
  • Constructor Details

    • NettyIoServiceFactory

      public NettyIoServiceFactory()
    • NettyIoServiceFactory

      public NettyIoServiceFactory(io.netty.channel.EventLoopGroup group)
    • NettyIoServiceFactory

      public NettyIoServiceFactory(io.netty.channel.EventLoopGroup group, NettyIoHandlerBridge handlerBridge)
  • Method Details

    • 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.CloseableUtils.AbstractCloseable
    • doCloseImmediately

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