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 8d696c0..59ccc58 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);
 }

©2013 OpenDaylight, A Linux Foundation Collaborative Project. All Rights Reserved.
OpenDaylight is a registered trademark of The OpenDaylight Project, Inc.
Linux Foundation and OpenDaylight are registered trademarks of the Linux Foundation.
Linux is a registered trademark of Linus Torvalds.