BUG-7965 Switch distributed-data backend to a separate shard
[controller.git] / opendaylight / md-sal / sal-distributed-datastore / src / main / java / org / opendaylight / controller / cluster / sharding / messages / LookupPrefixShard.java
@@ -11,8 +11,8 @@ package org.opendaylight.controller.cluster.sharding.messages;
 import com.google.common.annotations.Beta;
 import com.google.common.base.Preconditions;
 import java.io.Serializable;
-import org.opendaylight.controller.cluster.datastore.config.PrefixShardConfiguration;
 import org.opendaylight.controller.cluster.sharding.ShardedDataTreeActor;
+import org.opendaylight.mdsal.dom.api.DOMDataTreeIdentifier;
 
 /**
  * Sent to the local {@link ShardedDataTreeActor} when there was a shard created
@@ -20,25 +20,25 @@ import org.opendaylight.controller.cluster.sharding.ShardedDataTreeActor;
  * create the required frontend/backend shards.
  */
 @Beta
-public class CreatePrefixShard implements Serializable {
+public class LookupPrefixShard implements Serializable {
     private static final long serialVersionUID = 1L;
 
-    private final PrefixShardConfiguration configuration;
+    private final DOMDataTreeIdentifier prefix;
 
-    public CreatePrefixShard(final PrefixShardConfiguration configuration) {
-        this.configuration = Preconditions.checkNotNull(configuration);
+    public LookupPrefixShard(final DOMDataTreeIdentifier prefix) {
+        this.prefix = Preconditions.checkNotNull(prefix);
     }
 
-    public PrefixShardConfiguration getConfiguration() {
-        return configuration;
+    public DOMDataTreeIdentifier getPrefix() {
+        return prefix;
     }
 
 
     @Override
     public String toString() {
-        return "CreatePrefixShard{"
-                + "configuration="
-                + configuration
+        return "LookupPrefixShard{"
+                + "prefix="
+                + prefix
                 + '}';
     }
 }