Adding counters for HwVtep Listeners.
[netvirt.git] / elanmanager / impl / src / main / java / org / opendaylight / netvirt / elan / l2gw / ha / listeners / HAOpClusteredListener.java
index 5f250efacf277d32754afb4c5e0444f8a177edff..73b77204155577476e931b07ceaa7c3b2972c567 100644 (file)
@@ -25,6 +25,7 @@ import org.opendaylight.controller.md.sal.binding.api.ReadWriteTransaction;
 import org.opendaylight.controller.md.sal.common.api.data.LogicalDatastoreType;
 import org.opendaylight.controller.md.sal.common.api.data.ReadFailedException;
 import org.opendaylight.genius.utils.hwvtep.HwvtepNodeHACache;
+import org.opendaylight.infrautils.metrics.MetricProvider;
 import org.opendaylight.netvirt.elan.l2gw.ha.HwvtepHAUtil;
 import org.opendaylight.yang.gen.v1.urn.tbd.params.xml.ns.yang.network.topology.rev131021.network.topology.topology.Node;
 import org.opendaylight.yangtools.yang.binding.InstanceIdentifier;
@@ -39,8 +40,9 @@ public class HAOpClusteredListener extends HwvtepNodeBaseListener implements Clu
     private final Map<InstanceIdentifier<Node>, Set<Consumer<Optional<Node>>>> waitingJobs = new ConcurrentHashMap<>();
 
     @Inject
-    public HAOpClusteredListener(DataBroker db, HwvtepNodeHACache hwvtepNodeHACache) throws Exception {
-        super(LogicalDatastoreType.OPERATIONAL, db, hwvtepNodeHACache);
+    public HAOpClusteredListener(DataBroker db, HwvtepNodeHACache hwvtepNodeHACache,
+                                 MetricProvider metricProvider) throws Exception {
+        super(LogicalDatastoreType.OPERATIONAL, db, hwvtepNodeHACache, metricProvider, false);
         LOG.info("Registering HAOpClusteredListener");
     }