summaryrefslogtreecommitdiffstats
path: root/infra/minimal-distribution/src/main/java/io/fd/honeycomb/infra/distro/netconf/NetconfSshServerProvider.groovy
diff options
context:
space:
mode:
Diffstat (limited to 'infra/minimal-distribution/src/main/java/io/fd/honeycomb/infra/distro/netconf/NetconfSshServerProvider.groovy')
-rw-r--r--infra/minimal-distribution/src/main/java/io/fd/honeycomb/infra/distro/netconf/NetconfSshServerProvider.groovy8
1 files changed, 5 insertions, 3 deletions
diff --git a/infra/minimal-distribution/src/main/java/io/fd/honeycomb/infra/distro/netconf/NetconfSshServerProvider.groovy b/infra/minimal-distribution/src/main/java/io/fd/honeycomb/infra/distro/netconf/NetconfSshServerProvider.groovy
index bce4f261a..8b1b5bec2 100644
--- a/infra/minimal-distribution/src/main/java/io/fd/honeycomb/infra/distro/netconf/NetconfSshServerProvider.groovy
+++ b/infra/minimal-distribution/src/main/java/io/fd/honeycomb/infra/distro/netconf/NetconfSshServerProvider.groovy
@@ -16,6 +16,7 @@
package io.fd.honeycomb.infra.distro.netconf
+import com.google.common.util.concurrent.ThreadFactoryBuilder
import com.google.inject.Inject
import groovy.transform.ToString
import groovy.util.logging.Slf4j
@@ -48,12 +49,13 @@ class NetconfSshServerProvider extends ProviderTrait<NetconfSshServer> {
NioEventLoopGroup nettyThreadgroup
// TODO merge with other executors .. one of the brokers creates also 2 internal executors
- private ScheduledExecutorService pool = Executors.newScheduledThreadPool(1)
+ private ScheduledExecutorService pool =
+ Executors.newScheduledThreadPool(1, new ThreadFactoryBuilder().setNameFormat("netconf-ssh-%d").build())
@Override
def create() {
- def name = InetAddress.getByName(cfgAttributes.netconfSshBindingAddress)
- def bindingAddress = new InetSocketAddress(name, cfgAttributes.netconfSshBindingPort)
+ def name = InetAddress.getByName(cfgAttributes.netconfSshBindingAddress.get())
+ def bindingAddress = new InetSocketAddress(name, cfgAttributes.netconfSshBindingPort.get())
def localAddress = new LocalAddress(cfgAttributes.netconfSshBindingPort.toString())
def localServer = dispatcher.createLocalServer(localAddress)