7ba9648d1526fc52254f76cb708b511550d64ff7
[controller.git] / opendaylight / md-sal / sal-distributed-datastore / src / main / java / org / opendaylight / controller / cluster / sharding / messages / StartConfigShardLookup.java
1 /*
2  * Copyright (c) 2017 Cisco Systems, Inc. and others.  All rights reserved.
3  *
4  * This program and the accompanying materials are made available under the
5  * terms of the Eclipse Public License v1.0 which accompanies this distribution,
6  * and is available at http://www.eclipse.org/legal/epl-v10.html
7  */
8
9 package org.opendaylight.controller.cluster.sharding.messages;
10
11 import org.opendaylight.mdsal.common.api.LogicalDatastoreType;
12
13 /**
14  * Message that should be sent to ShardedDataTreeActor when the lookup of the prefix config shard should begin.
15  * Replied to with Succes once the shard has a leader.
16  */
17 @Deprecated(forRemoval = true)
18 public class StartConfigShardLookup {
19
20     private final LogicalDatastoreType type;
21
22     public StartConfigShardLookup(final LogicalDatastoreType type) {
23         this.type = type;
24     }
25
26     public LogicalDatastoreType getType() {
27         return type;
28     }
29
30     @Override
31     public String toString() {
32         return "StartConfigShardLookup{type=" + type + '}';
33     }
34 }