Allow SshProxyServer to share AsynchronousChannelGroup 53/76453/1
authorRobert Varga <robert.varga@pantheon.tech>
Tue, 25 Sep 2018 17:51:33 +0000 (19:51 +0200)
committerRobert Varga <nite@hq.sk>
Wed, 26 Sep 2018 10:17:17 +0000 (10:17 +0000)
commit26e68b518d970ade85de4788d25b42cd58186702
tree2d06511fe43715911c1babdfb93df7786d61c1c1
parent22c5e45752b51d2108df96fbfca358b43bc75bd2
Allow SshProxyServer to share AsynchronousChannelGroup

For testing purposes it is good to have the ability to share a single
thread group, as ach of them implies a dedicated thread. This patch
exposes an alternative constructor and allows multiple SshProxyServers
to share that group -- lowering resources needed significantly, both
in terms of threads, memory and file descriptors used.

Change-Id: I237ab0790e9a70c26288a116c59f5a541f236a74
Signed-off-by: Robert Varga <robert.varga@pantheon.tech>
netconf/netconf-ssh/src/main/java/org/opendaylight/netconf/ssh/SshProxyServer.java
netconf/tools/netconf-testtool/src/main/java/org/opendaylight/netconf/test/tool/NetconfDeviceSimulator.java