Enable remote notification for southbound plugin 39/27239/1
authorAnil Vishnoi <vishnoianil@gmail.com>
Mon, 21 Sep 2015 20:22:42 +0000 (01:52 +0530)
committerAnil Vishnoi <vishnoianil@gmail.com>
Mon, 21 Sep 2015 20:39:17 +0000 (20:39 +0000)
(cherry picked from commit 01f0737be6abacaf56721731f6a19dcb13e291f0)

Change-Id: Ida036244f3861e4d07437b49179bbf2851a212a5
Signed-off-by: Anil Vishnoi <vishnoianil@gmail.com>
southbound/southbound-impl/src/main/java/org/opendaylight/ovsdb/southbound/OvsdbDataChangeListener.java
southbound/southbound-impl/src/main/java/org/opendaylight/ovsdb/southbound/SouthboundProvider.java

index 434ef04aa42af97f87eb0ce48f634cc59fb355da..4db986d9606d94bdd8a3fb853e9082ee075f554e 100644 (file)
@@ -15,6 +15,7 @@ import java.util.Map;
 import java.util.Map.Entry;
 import java.util.Set;
 
+import org.opendaylight.controller.md.sal.binding.api.ClusteredDataChangeListener;
 import org.opendaylight.controller.md.sal.binding.api.DataBroker;
 import org.opendaylight.controller.md.sal.binding.api.DataChangeListener;
 import org.opendaylight.controller.md.sal.common.api.data.AsyncDataBroker.DataChangeScope;
@@ -42,7 +43,7 @@ import com.google.common.base.Preconditions;
 import com.google.common.base.Predicates;
 import com.google.common.collect.Maps;
 
-public class OvsdbDataChangeListener implements DataChangeListener, AutoCloseable {
+public class OvsdbDataChangeListener implements ClusteredDataChangeListener, AutoCloseable {
 
     private ListenerRegistration<DataChangeListener> registration;
     private OvsdbConnectionManager cm;
index abb9a627a7165303301c1c55c9eca5d9d2b7b7c7..4729102b0945403f685a4f9bba0031b35464a55a 100644 (file)
@@ -9,7 +9,6 @@ package org.opendaylight.ovsdb.southbound;
 
 import org.opendaylight.controller.md.sal.binding.api.DataBroker;
 import org.opendaylight.controller.md.sal.binding.api.ReadWriteTransaction;
-import org.opendaylight.controller.md.sal.common.api.clustering.CandidateAlreadyRegisteredException;
 import org.opendaylight.controller.md.sal.common.api.clustering.EntityOwnershipService;
 import org.opendaylight.controller.md.sal.common.api.data.LogicalDatastoreType;
 import org.opendaylight.controller.md.sal.common.api.data.ReadFailedException;