Class AbstractIoServiceFactory

java.lang.Object
org.apache.sshd.common.util.logging.AbstractLoggingBean
org.apache.sshd.common.util.closeable.IoBaseCloseable
org.apache.sshd.common.util.closeable.AbstractCloseable
org.apache.sshd.common.io.AbstractIoServiceFactory
All Implemented Interfaces:
Closeable, AutoCloseable, Channel, org.apache.sshd.common.Closeable, FactoryManagerHolder, org.apache.sshd.common.io.IoServiceEventListenerManager, org.apache.sshd.common.io.IoServiceFactory, org.apache.sshd.common.util.threads.ExecutorServiceCarrier
Direct Known Subclasses:
Nio2ServiceFactory

public abstract class AbstractIoServiceFactory extends org.apache.sshd.common.util.closeable.AbstractCloseable implements org.apache.sshd.common.io.IoServiceFactory, FactoryManagerHolder, org.apache.sshd.common.util.threads.ExecutorServiceCarrier
Author:
Apache MINA SSHD Project
  • 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 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
    Modifier
    Constructor
    Description
    protected
    AbstractIoServiceFactory(FactoryManager factoryManager, org.apache.sshd.common.util.threads.CloseableExecutorService executorService)
     
  • Method Summary

    Modifier and Type
    Method
    Description
    protected <S extends org.apache.sshd.common.io.IoService>
    S
     
    protected void
     
    final org.apache.sshd.common.util.threads.CloseableExecutorService
     
     
    org.apache.sshd.common.io.IoServiceEventListener
     
    static int
     
    void
    setIoServiceEventListener(org.apache.sshd.common.io.IoServiceEventListener listener)
     

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

    addCloseFutureListener, builder, close, doCloseGracefully, 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 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

    Methods inherited from interface org.apache.sshd.common.io.IoServiceFactory

    createAcceptor, createConnector
  • Constructor Details

    • AbstractIoServiceFactory

      protected AbstractIoServiceFactory(FactoryManager factoryManager, org.apache.sshd.common.util.threads.CloseableExecutorService executorService)
  • Method Details

    • getFactoryManager

      public final FactoryManager getFactoryManager()
      Specified by:
      getFactoryManager in interface FactoryManagerHolder
      Returns:
      The currently associated FactoryManager
    • getExecutorService

      public final org.apache.sshd.common.util.threads.CloseableExecutorService getExecutorService()
      Specified by:
      getExecutorService in interface org.apache.sshd.common.util.threads.ExecutorServiceCarrier
    • 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
    • doCloseImmediately

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

      protected <S extends org.apache.sshd.common.io.IoService> S autowireCreatedService(S service)
    • getNioWorkers

      public static int getNioWorkers(FactoryManager manager)