Class NettyIoServiceFactory
java.lang.Object
org.apache.sshd.common.util.logging.AbstractLoggingBean
org.apache.sshd.common.util.CloseableUtils.IoBaseCloseable
org.apache.sshd.common.util.CloseableUtils.AbstractCloseable
org.aesh.terminal.ssh.netty.NettyIoServiceFactory
- All Implemented Interfaces:
Closeable, AutoCloseable, Channel, org.apache.sshd.common.Closeable, org.apache.sshd.common.io.IoServiceFactory
public class NettyIoServiceFactory
extends org.apache.sshd.common.util.CloseableUtils.AbstractCloseable
implements org.apache.sshd.common.io.IoServiceFactory
- Author:
- Julien Viet
-
Nested Class Summary
Nested classes/interfaces inherited from class org.apache.sshd.common.util.CloseableUtils.AbstractCloseable
org.apache.sshd.common.util.CloseableUtils.AbstractCloseable.State -
Field Summary
Fields inherited from class org.apache.sshd.common.util.CloseableUtils.AbstractCloseable
closeFuture, lock, stateFields inherited from class org.apache.sshd.common.util.logging.AbstractLoggingBean
log -
Constructor Summary
ConstructorsConstructorDescriptionNettyIoServiceFactory(io.netty.channel.EventLoopGroup group) NettyIoServiceFactory(io.netty.channel.EventLoopGroup group, NettyIoHandlerBridge handlerBridge) -
Method Summary
Modifier and TypeMethodDescriptionorg.apache.sshd.common.io.IoAcceptorcreateAcceptor(org.apache.sshd.common.io.IoHandler handler) org.apache.sshd.common.io.IoConnectorcreateConnector(org.apache.sshd.common.io.IoHandler handler) protected org.apache.sshd.common.future.CloseFutureprotected voidMethods inherited from class org.apache.sshd.common.util.CloseableUtils.AbstractCloseable
builder, close, isClosed, isClosing, preCloseMethods inherited from class org.apache.sshd.common.util.CloseableUtils.IoBaseCloseable
close, isOpenMethods inherited from class Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitMethods inherited from interface org.apache.sshd.common.Closeable
close, isClosed, isClosing
-
Constructor Details
-
NettyIoServiceFactory
public NettyIoServiceFactory() -
NettyIoServiceFactory
public NettyIoServiceFactory(io.netty.channel.EventLoopGroup group) -
NettyIoServiceFactory
public NettyIoServiceFactory(io.netty.channel.EventLoopGroup group, NettyIoHandlerBridge handlerBridge)
-
-
Method Details
-
createConnector
public org.apache.sshd.common.io.IoConnector createConnector(org.apache.sshd.common.io.IoHandler handler) - Specified by:
createConnectorin interfaceorg.apache.sshd.common.io.IoServiceFactory
-
createAcceptor
public org.apache.sshd.common.io.IoAcceptor createAcceptor(org.apache.sshd.common.io.IoHandler handler) - Specified by:
createAcceptorin interfaceorg.apache.sshd.common.io.IoServiceFactory
-
doCloseGracefully
protected org.apache.sshd.common.future.CloseFuture doCloseGracefully()- Overrides:
doCloseGracefullyin classorg.apache.sshd.common.util.CloseableUtils.AbstractCloseable
-
doCloseImmediately
protected void doCloseImmediately()- Overrides:
doCloseImmediatelyin classorg.apache.sshd.common.util.CloseableUtils.AbstractCloseable
-