Merge "Introducing ShardManager"
[controller.git] / opendaylight / md-sal / sal-distributed-datastore / src / main / java / org / opendaylight / controller / cluster / datastore / messages / FindPrimary.java
1 package org.opendaylight.controller.cluster.datastore.messages;
2
3 import com.google.common.base.Preconditions;
4
5 /**
6  * The FindPrimary message is used to locate the primary of any given shard
7  *
8  * TODO : Make this serializable
9  */
10 public class FindPrimary{
11     private final String shardName;
12
13     public FindPrimary(String shardName){
14
15         Preconditions.checkNotNull(shardName, "shardName should not be null");
16
17         this.shardName = shardName;
18     }
19
20     public String getShardName() {
21         return shardName;
22     }
23 }