X-Git-Url: https://git.opendaylight.org/gerrit/gitweb?p=controller.git;a=blobdiff_plain;f=opendaylight%2Fmd-sal%2Fsal-distributed-datastore%2Fsrc%2Fmain%2Fjava%2Forg%2Fopendaylight%2Fcontroller%2Fcluster%2Fdatastore%2FDistributedDataStore.java;h=4964b92ab75a0d3d7f85c5404c22e0df7c80fbff;hp=f64c6f1a8669888726f30bfe4099aa628365ccbb;hb=bf58d8967d18f932df42ed025d2a2bd1a31002ec;hpb=1c0243c99d973e49c7e55404225d13ec09861a95 diff --git a/opendaylight/md-sal/sal-distributed-datastore/src/main/java/org/opendaylight/controller/cluster/datastore/DistributedDataStore.java b/opendaylight/md-sal/sal-distributed-datastore/src/main/java/org/opendaylight/controller/cluster/datastore/DistributedDataStore.java index f64c6f1a86..4964b92ab7 100644 --- a/opendaylight/md-sal/sal-distributed-datastore/src/main/java/org/opendaylight/controller/cluster/datastore/DistributedDataStore.java +++ b/opendaylight/md-sal/sal-distributed-datastore/src/main/java/org/opendaylight/controller/cluster/datastore/DistributedDataStore.java @@ -56,15 +56,17 @@ public class DistributedDataStore implements DOMStore, SchemaContextListener { InstanceIdentifier path, L listener, AsyncDataBroker.DataChangeScope scope) { - ActorRef dataChangeListenerActor = actorContext.getActorSystem().actorOf(DataChangeListener.props()); + ActorRef dataChangeListenerActor = actorContext.getActorSystem().actorOf( + DataChangeListener.props()); Object result = actorContext.executeShardOperation(Shard.DEFAULT_NAME, new RegisterChangeListener(path, dataChangeListenerActor.path(), AsyncDataBroker.DataChangeScope.BASE), - ActorContext.ASK_DURATION); + ActorContext.ASK_DURATION + ); RegisterChangeListenerReply reply = (RegisterChangeListenerReply) result; - return new ListenerRegistrationProxy(reply.getListenerRegistrationPath()); + return new DataChangeListenerRegistrationProxy(actorContext.actorSelection(reply.getListenerRegistrationPath()), listener); } @@ -90,6 +92,7 @@ public class DistributedDataStore implements DOMStore, SchemaContextListener { } @Override public void onGlobalContextUpdated(SchemaContext schemaContext) { - actorContext.getShardManager().tell(new UpdateSchemaContext(schemaContext), null); + actorContext.getShardManager().tell( + new UpdateSchemaContext(schemaContext), null); } }