BUG-2673: make IMDS implement DOMStoreTreeChangePublisher 62/16662/2
authorRobert Varga <rovarga@cisco.com>
Mon, 16 Mar 2015 17:54:39 +0000 (18:54 +0100)
committerRobert Varga <rovarga@cisco.com>
Tue, 17 Mar 2015 08:52:34 +0000 (09:52 +0100)
commitd43ffaf3191736e19f2c9f837e8d96aa6c9cfaa1
tree562a02ab3a1a9d189720c79bbfdc33c89a36160a
parent67865e740a07993794cc67fe14756937b7338b9c
BUG-2673: make IMDS implement DOMStoreTreeChangePublisher

This patch makes use of the AbstractDOMStoreTreeChangePublisher to do all
the registration wrangling and forwards all notifications towards a
dedicated publisher. Notifications are offloaded to the background
executor, just as normal DataChangeNotifications are. This initial
implementation does not close the registration listener race also
present in the data change notifications, as the notification manager
lacks the APIs to do that.

Change-Id: I36220b52a7a67df1f340b2b8bf32918de025920b
Signed-off-by: Robert Varga <rovarga@cisco.com>
opendaylight/md-sal/sal-inmemory-datastore/src/main/java/org/opendaylight/controller/md/sal/dom/store/impl/InMemoryDOMDataStore.java
opendaylight/md-sal/sal-inmemory-datastore/src/main/java/org/opendaylight/controller/md/sal/dom/store/impl/InMemoryDOMStoreTreeChangePublisher.java [new file with mode: 0644]
opendaylight/md-sal/sal-inmemory-datastore/src/main/java/org/opendaylight/controller/md/sal/dom/store/impl/SimpleDataTreeCandidate.java [new file with mode: 0644]