Convert CDS implementation to use msdal APIs
[controller.git] / opendaylight / md-sal / sal-distributed-datastore / src / main / java / org / opendaylight / controller / cluster / datastore / DistributedDataStoreInterface.java
index b678d174b0a3d26e75c4607c731d448673ca1aff..861cd610ca7aca8b0e6252007930ad30ed239da0 100644 (file)
@@ -8,7 +8,12 @@
 package org.opendaylight.controller.cluster.datastore;
 
 import org.opendaylight.controller.cluster.datastore.utils.ActorContext;
-import org.opendaylight.controller.sal.core.spi.data.DOMStore;
+import org.opendaylight.controller.md.sal.common.api.data.AsyncDataBroker.DataChangeScope;
+import org.opendaylight.controller.md.sal.common.api.data.AsyncDataChangeListener;
+import org.opendaylight.mdsal.dom.spi.store.DOMStore;
+import org.opendaylight.yangtools.concepts.ListenerRegistration;
+import org.opendaylight.yangtools.yang.data.api.YangInstanceIdentifier;
+import org.opendaylight.yangtools.yang.data.api.schema.NormalizedNode;
 
 /**
  * The public interface exposed vi a DistributedDataStore via the OSGi registry.
@@ -17,5 +22,9 @@ import org.opendaylight.controller.sal.core.spi.data.DOMStore;
  */
 public interface DistributedDataStoreInterface extends DOMStore {
 
+    @Deprecated
+    <L extends AsyncDataChangeListener<YangInstanceIdentifier, NormalizedNode<?, ?>>> ListenerRegistration<L>
+        registerChangeListener(YangInstanceIdentifier path, L listener, DataChangeScope scope);
+
     ActorContext getActorContext();
-}
\ No newline at end of file
+}