Package org.apache.sshd.netty
Class NettyIoServiceFactory
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.netty.NettyIoServiceFactory
- All Implemented Interfaces:
Closeable
,AutoCloseable
,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
FieldsModifier and TypeFieldDescriptionprotected final boolean
private org.apache.sshd.common.io.IoServiceEventListener
protected final io.netty.channel.EventLoopGroup
protected final org.apache.sshd.common.FactoryManager
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
ConstructorsConstructorDescriptionNettyIoServiceFactory
(org.apache.sshd.common.FactoryManager manager) NettyIoServiceFactory
(org.apache.sshd.common.FactoryManager manager, io.netty.channel.EventLoopGroup group) -
Method Summary
Modifier and TypeMethodDescriptionorg.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
org.apache.sshd.common.io.IoServiceEventListener
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 Details
-
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 Details
-
NettyIoServiceFactory
public NettyIoServiceFactory(org.apache.sshd.common.FactoryManager manager) -
NettyIoServiceFactory
public NettyIoServiceFactory(org.apache.sshd.common.FactoryManager manager, io.netty.channel.EventLoopGroup group)
-
-
Method Details
-
getIoServiceEventListener
public org.apache.sshd.common.io.IoServiceEventListener getIoServiceEventListener()- Specified by:
getIoServiceEventListener
in interfaceorg.apache.sshd.common.io.IoServiceEventListenerManager
-
setIoServiceEventListener
public void setIoServiceEventListener(org.apache.sshd.common.io.IoServiceEventListener listener) - Specified by:
setIoServiceEventListener
in interfaceorg.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 interfaceorg.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 interfaceorg.apache.sshd.common.io.IoServiceFactory
-
doCloseGracefully
protected org.apache.sshd.common.future.CloseFuture doCloseGracefully()- Overrides:
doCloseGracefully
in classorg.apache.sshd.common.util.closeable.AbstractCloseable
-
doCloseImmediately
protected void doCloseImmediately()- Overrides:
doCloseImmediately
in classorg.apache.sshd.common.util.closeable.AbstractCloseable
-