X-Git-Url: https://git.opendaylight.org/gerrit/gitweb?a=blobdiff_plain;f=opendaylight%2Fmd-sal%2Fsal-distributed-datastore%2Fsrc%2Fmain%2Fjava%2Forg%2Fopendaylight%2Fcontroller%2Fcluster%2Fdatastore%2FDataChangeListenerRegistrationProxy.java;h=33cf8e9c1d292ca46f47cfb3efd9497ed38a63cc;hb=f41c5e6e6f6e10b36b1e4b1992877e38e718c8fb;hp=2c0be57bc1be9c2ba6831ff05c5c2ebfe3065364;hpb=e78622411319748472b5d9edab14eb6dc92cf6b1;p=controller.git
diff --git a/opendaylight/md-sal/sal-distributed-datastore/src/main/java/org/opendaylight/controller/cluster/datastore/DataChangeListenerRegistrationProxy.java b/opendaylight/md-sal/sal-distributed-datastore/src/main/java/org/opendaylight/controller/cluster/datastore/DataChangeListenerRegistrationProxy.java
index 2c0be57bc1..33cf8e9c1d 100644
--- a/opendaylight/md-sal/sal-distributed-datastore/src/main/java/org/opendaylight/controller/cluster/datastore/DataChangeListenerRegistrationProxy.java
+++ b/opendaylight/md-sal/sal-distributed-datastore/src/main/java/org/opendaylight/controller/cluster/datastore/DataChangeListenerRegistrationProxy.java
@@ -31,11 +31,11 @@ import org.slf4j.LoggerFactory;
import scala.concurrent.Future;
/**
- * ListenerRegistrationProxy acts as a proxy for a ListenerRegistration that was done on a remote shard
+ * ListenerRegistrationProxy acts as a proxy for a ListenerRegistration that was done on a remote shard.
+ *
*
* Registering a DataChangeListener on the Data Store creates a new instance of the ListenerRegistrationProxy
* The ListenerRegistrationProxy talks to a remote ListenerRegistration actor.
- *
*/
@SuppressWarnings("rawtypes")
public class DataChangeListenerRegistrationProxy implements ListenerRegistration {
@@ -50,7 +50,8 @@ public class DataChangeListenerRegistrationProxy implements ListenerRegistration
private boolean closed = false;
public >>
- DataChangeListenerRegistrationProxy(String shardName, ActorContext actorContext, L listener) {
+ DataChangeListenerRegistrationProxy(final String shardName, final ActorContext actorContext,
+ final L listener) {
this.shardName = Preconditions.checkNotNull(shardName);
this.actorContext = Preconditions.checkNotNull(actorContext);
this.listener = Preconditions.checkNotNull(listener);
@@ -71,7 +72,7 @@ public class DataChangeListenerRegistrationProxy implements ListenerRegistration
return listener;
}
- private void setListenerRegistrationActor(ActorSelection listenerRegistrationActor) {
+ private void setListenerRegistrationActor(final ActorSelection listenerRegistrationActor) {
if (listenerRegistrationActor == null) {
return;
}
@@ -99,7 +100,7 @@ public class DataChangeListenerRegistrationProxy implements ListenerRegistration
Future findFuture = actorContext.findLocalShardAsync(shardName);
findFuture.onComplete(new OnComplete() {
@Override
- public void onComplete(Throwable failure, ActorRef shard) {
+ public void onComplete(final Throwable failure, final ActorRef shard) {
if (failure instanceof LocalShardNotFoundException) {
LOG.debug("No local shard found for {} - DataChangeListener {} at path {} "
+ "cannot be registered", shardName, listener, path);
@@ -113,8 +114,8 @@ public class DataChangeListenerRegistrationProxy implements ListenerRegistration
}, actorContext.getClientDispatcher());
}
- private void doRegistration(ActorRef shard, final YangInstanceIdentifier path,
- DataChangeScope scope) {
+ private void doRegistration(final ActorRef shard, final YangInstanceIdentifier path,
+ final DataChangeScope scope) {
Future