BUG-2138: Create DistributedShardFrontend
[controller.git] / opendaylight / md-sal / sal-distributed-datastore / src / main / java / org / opendaylight / controller / cluster / sharding / messages / RemovePrefixShard.java
index fa74af62a27bab4c8804b514f6a5c1ff265b82b1..6de1bb0eba7d74c83c4b6c61d4fee1343a468365 100644 (file)
@@ -13,8 +13,9 @@ import org.opendaylight.controller.cluster.sharding.ShardedDataTreeActor;
 import org.opendaylight.mdsal.dom.api.DOMDataTreeIdentifier;
 
 /**
- * Sent to the local {@link ShardedDataTreeActor} to notify of a shard removal on the local node. The local actor
- * should then notify the remote nodes of the Removal with {@link PrefixShardRemoved} message.
+ * Sent to the local {@link ShardedDataTreeActor} to notify of a shard removal on the local node.
+ * The local actor should update the configuration so that the change is picked up by other CDS Node Agents and
+ * backend ShardManagers.
  */
 public class RemovePrefixShard {
 
@@ -28,4 +29,11 @@ public class RemovePrefixShard {
     public DOMDataTreeIdentifier getPrefix() {
         return prefix;
     }
+
+    @Override
+    public String toString() {
+        return "RemovePrefixShard{"
+                + "prefix=" + prefix
+                + '}';
+    }
 }