2 * Copyright (c) 2015 Dell 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
9 package org.opendaylight.controller.cluster.datastore.messages;
11 import com.google.common.base.Preconditions;
12 import javax.annotation.Nonnull;
15 * A message sent to the ShardManager to dynamically remove a local shard
16 * replica available in this node.
18 public class RemoveShardReplica {
20 private final String shardName;
21 private final String memberName;
26 * @param shardName name of the local shard that is to be dynamically removed.
28 public RemoveShardReplica (@Nonnull String shardName, @Nonnull String memberName) {
29 this.shardName = Preconditions.checkNotNull(shardName, "shardName should not be null");
30 this.memberName = Preconditions.checkNotNull(memberName, "memberName should not be null");
33 public String getShardName(){
37 public String getMemberName() {
42 public String toString() {
43 return "RemoveShardReplica [shardName=" + shardName + ", memberName=" + memberName + "]";