Package org.opendaylight.netconf.ssh
Class SshProxyServer
- java.lang.Object
-
- org.opendaylight.netconf.ssh.SshProxyServer
-
- All Implemented Interfaces:
AutoCloseable
public class SshProxyServer extends Object implements AutoCloseable
Proxy SSH server that just delegates decrypted content to a delegate server within same VM. Implemented using Apache Mina SSH lib.
-
-
Constructor Summary
Constructors Constructor Description SshProxyServer(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
All Methods Instance Methods Concrete Methods Modifier and Type Method Description voidbind(SshProxyServerConfiguration sshProxyServerConfiguration)voidclose()
-
-
-
Constructor Detail
-
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 Detail
-
bind
public void bind(SshProxyServerConfiguration sshProxyServerConfiguration) throws IOException
- Throws:
IOException
-
close
public void close() throws IOException- Specified by:
closein interfaceAutoCloseable- Throws:
IOException
-
-