Convert sal-distributed-datastore to OSGi DS
[controller.git] / opendaylight / md-sal / sal-distributed-datastore / src / main / java / org / opendaylight / controller / cluster / datastore / DistributedDataStoreInterface.java
index 8d696c0448f68fbe0104251d0bf578f83ad1adc6..59ccc58d9d2bbc84232d54c3bfe8b6b1c18b78ba 100644 (file)
@@ -7,15 +7,28 @@
  */
 package org.opendaylight.controller.cluster.datastore;
 
+import com.google.common.annotations.Beta;
 import org.opendaylight.controller.cluster.datastore.utils.ActorUtils;
+import org.opendaylight.mdsal.dom.api.DOMDataTreeChangeListener;
 import org.opendaylight.mdsal.dom.spi.store.DOMStore;
+import org.opendaylight.yangtools.concepts.ListenerRegistration;
+import org.opendaylight.yangtools.yang.data.api.YangInstanceIdentifier;
 
 /**
- * The public interface exposed vi a DistributedDataStore via the OSGi registry.
+ * The public interface exposed by an AbstractDataStore via the OSGi registry.
  *
  * @author Thomas Pantelis
  */
 public interface DistributedDataStoreInterface extends DOMStore {
 
     ActorUtils getActorUtils();
+
+    @Beta
+    <L extends DOMDataTreeChangeListener> ListenerRegistration<L> registerShardConfigListener(
+            YangInstanceIdentifier internalPath, DOMDataTreeChangeListener delegate);
+
+    @Beta
+    <L extends DOMDataTreeChangeListener> ListenerRegistration<L> registerProxyListener(
+            YangInstanceIdentifier shardLookup, YangInstanceIdentifier insideShard,
+            DOMDataTreeChangeListener delegate);
 }