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 / StartConfigShardLookup.java
diff --git a/opendaylight/md-sal/sal-distributed-datastore/src/main/java/org/opendaylight/controller/cluster/sharding/messages/StartConfigShardLookup.java b/opendaylight/md-sal/sal-distributed-datastore/src/main/java/org/opendaylight/controller/cluster/sharding/messages/StartConfigShardLookup.java
new file mode 100644 (file)
index 0000000..22e5dbf
--- /dev/null
@@ -0,0 +1,33 @@
+/*
+ * Copyright (c) 2017 Cisco Systems, Inc. and others.  All rights reserved.
+ *
+ * This program and the accompanying materials are made available under the
+ * terms of the Eclipse Public License v1.0 which accompanies this distribution,
+ * and is available at http://www.eclipse.org/legal/epl-v10.html
+ */
+
+package org.opendaylight.controller.cluster.sharding.messages;
+
+import org.opendaylight.mdsal.common.api.LogicalDatastoreType;
+
+/**
+ * Message that should be sent to ShardedDataTreeActor when the lookup of the prefix config shard should begin.
+ * Replied to with Succes once the shard has a leader.
+ */
+public class StartConfigShardLookup {
+
+    private LogicalDatastoreType type;
+
+    public StartConfigShardLookup(final LogicalDatastoreType type) {
+        this.type = type;
+    }
+
+    public LogicalDatastoreType getType() {
+        return type;
+    }
+
+    @Override
+    public String toString() {
+        return "StartConfigShardLookup{type=" + type + '}';
+    }
+}