Class NettyIoAcceptor
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
org.apache.sshd.netty.NettyIoAcceptor
- All Implemented Interfaces:
Closeable, AutoCloseable, Channel, org.apache.sshd.common.Closeable, org.apache.sshd.common.io.IoAcceptor, org.apache.sshd.common.io.IoService, org.apache.sshd.common.io.IoServiceEventListenerManager
The Netty based IoAcceptor implementation.
-
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.bootstrap.ServerBootstrapprotected final Map<SocketAddress, io.netty.channel.Channel> private static final io.netty.handler.logging.LoggingHandlerFields inherited from class NettyIoService
channelGroup, CONNECT_FUTURE_KEY, factory, handler, sessions, sessionSeqFields 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
ConstructorsConstructorDescriptionNettyIoAcceptor(NettyIoServiceFactory factory, org.apache.sshd.common.io.IoHandler handler) -
Method Summary
Modifier and TypeMethodDescriptionvoidbind(SocketAddress address) voidbind(Collection<? extends SocketAddress> addresses) protected io.netty.channel.ChannelbindInternal(SocketAddress address) protected voidcloseChannel(io.netty.channel.Channel channel) protected org.apache.sshd.common.future.CloseFutureprotected voidvoidunbind()voidunbind(SocketAddress address) voidunbind(Collection<? extends SocketAddress> addresses) Methods inherited from class NettyIoService
getIoServiceEventListener, getManagedSessions, mapSession, registerChannel, setIoServiceEventListenerMethods inherited from class org.apache.sshd.common.util.closeable.AbstractCloseable
addCloseFutureListener, builder, close, 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 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, removeCloseFutureListenerMethods inherited from interface org.apache.sshd.common.io.IoService
getManagedSessionsMethods inherited from interface org.apache.sshd.common.io.IoServiceEventListenerManager
getIoServiceEventListener, setIoServiceEventListener
-
Field Details
-
LOGGING_TRACE
private static final io.netty.handler.logging.LoggingHandler LOGGING_TRACE -
bootstrap
protected final io.netty.bootstrap.ServerBootstrap bootstrap -
boundAddresses
-
-
Constructor Details
-
NettyIoAcceptor
-
-
Method Details
-
bind
- Specified by:
bindin interfaceorg.apache.sshd.common.io.IoAcceptor- Throws:
IOException
-
bind
- Specified by:
bindin interfaceorg.apache.sshd.common.io.IoAcceptor- Throws:
IOException
-
bindInternal
- Throws:
IOException
-
closeChannel
protected void closeChannel(io.netty.channel.Channel channel) -
unbind
- Specified by:
unbindin interfaceorg.apache.sshd.common.io.IoAcceptor
-
unbind
- Specified by:
unbindin interfaceorg.apache.sshd.common.io.IoAcceptor
-
unbind
public void unbind()- Specified by:
unbindin interfaceorg.apache.sshd.common.io.IoAcceptor
-
getBoundAddresses
- Specified by:
getBoundAddressesin interfaceorg.apache.sshd.common.io.IoAcceptor
-
doCloseGracefully
protected org.apache.sshd.common.future.CloseFuture doCloseGracefully()- Overrides:
doCloseGracefullyin classorg.apache.sshd.common.util.closeable.AbstractCloseable
-
doCloseImmediately
protected void doCloseImmediately()- Overrides:
doCloseImmediatelyin classNettyIoService
-