2 * Copyright (c) 2016 Brocade Communications Systems, Inc. and others. All rights reserved.
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
8 package org.opendaylight.controller.cluster.datastore.messages;
10 import static java.util.Objects.requireNonNull;
12 import com.google.common.collect.ImmutableMap;
16 * A local message sent to the ShardManager to change the raft voting status for members of a shard.
18 * @author Thomas Pantelis
20 public class ChangeShardMembersVotingStatus {
21 private final String shardName;
22 private final Map<String, Boolean> meberVotingStatusMap;
24 public ChangeShardMembersVotingStatus(final String shardName, final Map<String, Boolean> meberVotingStatusMap) {
25 this.shardName = requireNonNull(shardName);
26 this.meberVotingStatusMap = ImmutableMap.copyOf(meberVotingStatusMap);
29 public String getShardName() {
33 public Map<String, Boolean> getMeberVotingStatusMap() {
34 return meberVotingStatusMap;
38 public String toString() {
39 return "ChangeShardMembersVotingStatus [shardName=" + shardName + ", meberVotingStatusMap="
40 + meberVotingStatusMap + "]";