X-Git-Url: https://git.opendaylight.org/gerrit/gitweb?a=blobdiff_plain;f=opendaylight%2Fnetconf%2Fnetconf-impl%2Fsrc%2Fmain%2Fjava%2Forg%2Fopendaylight%2Fcontroller%2Fnetconf%2Fimpl%2Fosgi%2FNetconfImplActivator.java;h=890bbe728804e469f0d2989253e6815ec1b85d06;hb=d431c454a362865e1b504ecc87f199836403b0e8;hp=1a4888ba93b69081ab0d584a1730c7b74d84ed37;hpb=7021b10a1222828229378743de6d3286741adc3c;p=controller.git diff --git a/opendaylight/netconf/netconf-impl/src/main/java/org/opendaylight/controller/netconf/impl/osgi/NetconfImplActivator.java b/opendaylight/netconf/netconf-impl/src/main/java/org/opendaylight/controller/netconf/impl/osgi/NetconfImplActivator.java index 1a4888ba93..890bbe7288 100644 --- a/opendaylight/netconf/netconf-impl/src/main/java/org/opendaylight/controller/netconf/impl/osgi/NetconfImplActivator.java +++ b/opendaylight/netconf/netconf-impl/src/main/java/org/opendaylight/controller/netconf/impl/osgi/NetconfImplActivator.java @@ -37,6 +37,7 @@ public class NetconfImplActivator implements BundleActivator { private DefaultCommitNotificationProducer commitNot; private NetconfServerDispatcher dispatch; private NioEventLoopGroup eventLoopGroup; + private HashedWheelTimer timer; @Override public void start(final BundleContext context) throws Exception { @@ -50,8 +51,9 @@ public class NetconfImplActivator implements BundleActivator { factoriesTracker.open(); SessionIdProvider idProvider = new SessionIdProvider(); + timer = new HashedWheelTimer(); NetconfServerSessionNegotiatorFactory serverNegotiatorFactory = new NetconfServerSessionNegotiatorFactory( - new HashedWheelTimer(), factoriesListener, idProvider); + timer, factoriesListener, idProvider); commitNot = new DefaultCommitNotificationProducer(ManagementFactory.getPlatformMBeanServer()); @@ -88,5 +90,6 @@ public class NetconfImplActivator implements BundleActivator { commitNot.close(); eventLoopGroup.shutdownGracefully(); + timer.stop(); } }