Package org.opendaylight.netconf.ssh
Class SshProxyServer
java.lang.Object
org.opendaylight.netconf.ssh.SshProxyServer
- All Implemented Interfaces:
AutoCloseable
Proxy SSH server that just delegates decrypted content to a delegate server within same VM.
Implemented using Apache Mina SSH lib.
-
Constructor Summary
ConstructorsConstructorDescriptionSshProxyServer(ScheduledExecutorService minaTimerExecutor, io.netty.channel.EventLoopGroup clientGroup, AsynchronousChannelGroup group) Create a server with a sharedAsynchronousChannelGroup.SshProxyServer(ScheduledExecutorService minaTimerExecutor, io.netty.channel.EventLoopGroup clientGroup, ExecutorService nioExecutor) -
Method Summary
Modifier and TypeMethodDescriptionvoidbind(SshProxyServerConfiguration sshProxyServerConfiguration) voidclose()
-
Constructor Details
-
SshProxyServer
public SshProxyServer(ScheduledExecutorService minaTimerExecutor, io.netty.channel.EventLoopGroup clientGroup, ExecutorService nioExecutor) -
SshProxyServer
public SshProxyServer(ScheduledExecutorService minaTimerExecutor, io.netty.channel.EventLoopGroup clientGroup, AsynchronousChannelGroup group) Create a server with a sharedAsynchronousChannelGroup. Unlike the other constructor, this does not create a dedicated thread group, which is useful when you need to start a large number of servers and do not want to have a thread group (and hence an anonyous thread) for each of them.
-
-
Method Details
-
bind
- Throws:
IOException
-
close
- Specified by:
closein interfaceAutoCloseable- Throws:
IOException
-