X-Git-Url: https://git.opendaylight.org/gerrit/gitweb?a=blobdiff_plain;ds=inline;f=opendaylight%2Fnetconf%2Fnetconf-impl%2Fsrc%2Fmain%2Fjava%2Forg%2Fopendaylight%2Fcontroller%2Fnetconf%2Fimpl%2FNetconfServerSessionListenerFactory.java;h=7e047b14fccda2b07a4f04e2320b096780f97501;hb=f21eb777e0e23586aaa3880028b556a48dfd4823;hp=70ddf299fd5dd0d7ff8c091598c0644a88278342;hpb=9d2212483a4fca225d5ad58e7f924f58b638ddb6;p=controller.git diff --git a/opendaylight/netconf/netconf-impl/src/main/java/org/opendaylight/controller/netconf/impl/NetconfServerSessionListenerFactory.java b/opendaylight/netconf/netconf-impl/src/main/java/org/opendaylight/controller/netconf/impl/NetconfServerSessionListenerFactory.java index 70ddf299fd..7e047b14fc 100644 --- a/opendaylight/netconf/netconf-impl/src/main/java/org/opendaylight/controller/netconf/impl/NetconfServerSessionListenerFactory.java +++ b/opendaylight/netconf/netconf-impl/src/main/java/org/opendaylight/controller/netconf/impl/NetconfServerSessionListenerFactory.java @@ -8,10 +8,12 @@ package org.opendaylight.controller.netconf.impl; +import org.opendaylight.controller.netconf.api.NetconfOperationRouter; import org.opendaylight.controller.netconf.impl.mapping.CapabilityProvider; import org.opendaylight.controller.netconf.impl.osgi.NetconfOperationRouterImpl; import org.opendaylight.controller.netconf.impl.osgi.NetconfOperationServiceFactoryListener; import org.opendaylight.controller.netconf.impl.osgi.NetconfOperationServiceSnapshot; +import org.opendaylight.controller.netconf.impl.osgi.SessionMonitoringService; import org.opendaylight.protocol.framework.SessionListenerFactory; public class NetconfServerSessionListenerFactory implements SessionListenerFactory { @@ -22,12 +24,15 @@ public class NetconfServerSessionListenerFactory implements SessionListenerFacto private final SessionIdProvider idProvider; + private final SessionMonitoringService monitor; + public NetconfServerSessionListenerFactory(NetconfOperationServiceFactoryListener factoriesListener, - DefaultCommitNotificationProducer commitNotifier, - SessionIdProvider idProvider) { + DefaultCommitNotificationProducer commitNotifier, + SessionIdProvider idProvider, SessionMonitoringService monitor) { this.factoriesListener = factoriesListener; this.commitNotifier = commitNotifier; this.idProvider = idProvider; + this.monitor = monitor; } @Override @@ -37,10 +42,10 @@ public class NetconfServerSessionListenerFactory implements SessionListenerFacto CapabilityProvider capabilityProvider = new CapabilityProviderImpl(netconfOperationServiceSnapshot); - NetconfOperationRouterImpl operationRouter = new NetconfOperationRouterImpl( + NetconfOperationRouter operationRouter = NetconfOperationRouterImpl.createOperationRouter( netconfOperationServiceSnapshot, capabilityProvider, commitNotifier); - return new NetconfServerSessionListener(operationRouter); + return new NetconfServerSessionListener(operationRouter, monitor); } }