Package org.apache.sshd.common.io
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,Closeable,FactoryManagerHolder,IoServiceEventListenerManager,IoServiceFactory,ExecutorServiceCarrier
- Direct Known Subclasses:
Nio2ServiceFactory
public abstract class AbstractIoServiceFactory extends AbstractCloseable implements IoServiceFactory, FactoryManagerHolder, ExecutorServiceCarrier
- Author:
- Apache MINA SSHD Project
-
-
Nested Class Summary
-
Nested classes/interfaces inherited from class org.apache.sshd.common.util.closeable.AbstractCloseable
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 protectedAbstractIoServiceFactory(FactoryManager factoryManager, CloseableExecutorService executorService)
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description protected <S extends IoService>
SautowireCreatedService(S service)protected voiddoCloseImmediately()CloseableExecutorServicegetExecutorService()FactoryManagergetFactoryManager()IoServiceEventListenergetIoServiceEventListener()static intgetNioWorkers(FactoryManager manager)voidsetIoServiceEventListener(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 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
-
Methods inherited from interface org.apache.sshd.common.io.IoServiceFactory
createAcceptor, createConnector
-
-
-
-
Constructor Detail
-
AbstractIoServiceFactory
protected AbstractIoServiceFactory(FactoryManager factoryManager, CloseableExecutorService executorService)
-
-
Method Detail
-
getFactoryManager
public final FactoryManager getFactoryManager()
- Specified by:
getFactoryManagerin interfaceFactoryManagerHolder- Returns:
- The currently associated
FactoryManager
-
getExecutorService
public final CloseableExecutorService getExecutorService()
- Specified by:
getExecutorServicein interfaceExecutorServiceCarrier
-
getIoServiceEventListener
public IoServiceEventListener getIoServiceEventListener()
- Specified by:
getIoServiceEventListenerin interfaceIoServiceEventListenerManager
-
setIoServiceEventListener
public void setIoServiceEventListener(IoServiceEventListener listener)
- Specified by:
setIoServiceEventListenerin interfaceIoServiceEventListenerManager
-
doCloseImmediately
protected void doCloseImmediately()
- Overrides:
doCloseImmediatelyin classAbstractCloseable
-
autowireCreatedService
protected <S extends IoService> S autowireCreatedService(S service)
-
getNioWorkers
public static int getNioWorkers(FactoryManager manager)
-
-