BUG 8447: Add shard getRole rpcs
[controller.git] / opendaylight / md-sal / sal-distributed-datastore / src / main / java / org / opendaylight / controller / cluster / datastore / messages / GetShardRole.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.datastore.messages;
10
11 /**
12  * Message sent to the local ShardManager to request the current role for the given shard.
13  */
14 public class GetShardRole {
15
16     private final String name;
17
18     public GetShardRole(final String name) {
19         this.name = name;
20     }
21
22     public String getName() {
23         return name;
24     }
25 }