BUG-5280: remove support for talking to pre-Boron clients
[controller.git] / opendaylight / md-sal / sal-distributed-datastore / src / main / java / org / opendaylight / controller / cluster / datastore / messages / FlipShardMembersVotingStatus.java
1 /*
2  * Copyright (c) 2016 Brocade Communications 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 package org.opendaylight.controller.cluster.datastore.messages;
9
10 import com.google.common.base.Preconditions;
11
12 /**
13  * A local message sent to the ShardManager to flip the raft voting states for members of a shard.
14  *
15  * @author Thomas Pantelis
16  */
17 public class FlipShardMembersVotingStatus {
18     private final String shardName;
19
20     public FlipShardMembersVotingStatus(String shardName) {
21         this.shardName = Preconditions.checkNotNull(shardName);
22     }
23
24     public String getShardName() {
25         return shardName;
26     }
27
28     @Override
29     public String toString() {
30         return "FlipShardMembersVotingStatus [shardName=" + shardName + "]";
31     }
32 }