Package org.apache.sshd.netty
Class NettyIoService
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.NettyIoService
- All Implemented Interfaces:
Closeable,AutoCloseable,Channel,Closeable,IoService,IoServiceEventListenerManager
- Direct Known Subclasses:
NettyIoAcceptor,NettyIoConnector
public abstract class NettyIoService
extends org.apache.sshd.common.util.closeable.AbstractCloseable
implements IoService
- Author:
- Julien Viet, 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
FieldsModifier and TypeFieldDescriptionprotected final io.netty.channel.group.ChannelGroupstatic final io.netty.util.AttributeKey<IoConnectFuture> protected final NettyIoServiceFactoryprotected final IoHandlerprotected final AtomicLongFields inherited from class org.apache.sshd.common.util.closeable.AbstractCloseable
closeFuture, futureLock, stateFields inherited from class org.apache.sshd.common.util.logging.AbstractLoggingBean
logFields inherited from interface org.apache.sshd.common.io.IoService
DEFAULT_REUSE_ADDRESS -
Constructor Summary
ConstructorsModifierConstructorDescriptionprotectedNettyIoService(NettyIoServiceFactory factory, IoHandler handler, String channelGroupName) -
Method Summary
Modifier and TypeMethodDescriptionprotected voidprotected voidmapSession(IoSession session) protected voidregisterChannel(io.netty.channel.Channel channel) voidMethods inherited from class org.apache.sshd.common.util.closeable.AbstractCloseable
addCloseFutureListener, builder, close, doCloseGracefully, getFutureLock, isClosed, isClosing, preClose, removeCloseFutureListenerMethods 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, warnMethods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitMethods inherited from interface org.apache.sshd.common.Closeable
addCloseFutureListener, close, close, isClosed, isClosing, isOpen, removeCloseFutureListener
-
Field Details
-
CONNECT_FUTURE_KEY
-
sessionSeq
-
sessions
-
channelGroup
protected final io.netty.channel.group.ChannelGroup channelGroup -
factory
-
handler
-
-
Constructor Details
-
NettyIoService
-
-
Method Details
-
doCloseImmediately
protected void doCloseImmediately()- Overrides:
doCloseImmediatelyin classorg.apache.sshd.common.util.closeable.AbstractCloseable
-
registerChannel
- Throws:
CancellationException
-
mapSession
- Throws:
CancellationException
-
getIoServiceEventListener
- Specified by:
getIoServiceEventListenerin interfaceIoServiceEventListenerManager
-
setIoServiceEventListener
- Specified by:
setIoServiceEventListenerin interfaceIoServiceEventListenerManager
-
getManagedSessions
- Specified by:
getManagedSessionsin interfaceIoService
-