Expose QueuedNotificationManager 40/71440/2
authorRobert Varga <robert.varga@pantheon.tech>
Thu, 26 Apr 2018 19:16:58 +0000 (21:16 +0200)
committerTom Pantelis <tompantelis@gmail.com>
Wed, 2 May 2018 02:24:20 +0000 (02:24 +0000)
This manager is being hooked into in controller's IMDS. Expose
the hook so we can proxy over completely.

Change-Id: Ifb9696cf3257a29a71e0d4587b0494e3e8e656f0
Signed-off-by: Robert Varga <robert.varga@pantheon.tech>
dom/mdsal-dom-inmemory-datastore/src/main/java/org/opendaylight/mdsal/dom/store/inmemory/InMemoryDOMDataStore.java
dom/mdsal-dom-inmemory-datastore/src/main/java/org/opendaylight/mdsal/dom/store/inmemory/InMemoryDOMStoreTreeChangePublisher.java

index 427a57b4527ac5a5f9450e5e269dfc4a31cfd5a0..61dbb025d073a97e13ee10cad2d88a36cffb1147 100644 (file)
@@ -25,6 +25,7 @@ import org.opendaylight.mdsal.dom.spi.store.SnapshotBackedWriteTransaction.Trans
 import org.opendaylight.yangtools.concepts.Identifiable;
 import org.opendaylight.yangtools.concepts.ListenerRegistration;
 import org.opendaylight.yangtools.util.ExecutorServiceUtil;
+import org.opendaylight.yangtools.util.concurrent.QueuedNotificationManager;
 import org.opendaylight.yangtools.yang.data.api.YangInstanceIdentifier;
 import org.opendaylight.yangtools.yang.data.api.schema.tree.DataTree;
 import org.opendaylight.yangtools.yang.data.api.schema.tree.DataTreeCandidate;
@@ -76,6 +77,10 @@ public class InMemoryDOMDataStore extends TransactionReadyPrototype<String> impl
                 maxDataChangeListenerQueueSize);
     }
 
+    public QueuedNotificationManager<?, ?> getDataChangeListenerNotificationManager() {
+        return changePublisher.getNotificationManager();
+    }
+
     public void setCloseable(final AutoCloseable closeable) {
         this.closeable = closeable;
     }
index b7e32a89a16bc5b6780b737949f862994980d070..c92f40b4ae16923d5b041c43a03700bf6c234dac 100644 (file)
@@ -44,11 +44,15 @@ final class InMemoryDOMStoreTreeChangePublisher extends AbstractDOMStoreTreeChan
                 "DataTreeChangeListenerQueueMgr");
     }
 
-    private InMemoryDOMStoreTreeChangePublisher(QueuedNotificationManager<
+    private InMemoryDOMStoreTreeChangePublisher(final QueuedNotificationManager<
             AbstractDOMDataTreeChangeListenerRegistration<?>, DataTreeCandidate> notificationManager) {
         this.notificationManager = notificationManager;
     }
 
+    QueuedNotificationManager<?, ?> getNotificationManager() {
+        return notificationManager;
+    }
+
     @Override
     protected void notifyListener(final AbstractDOMDataTreeChangeListenerRegistration<?> registration,
             final Collection<DataTreeCandidate> changes) {