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
8 package org.opendaylight.controller.cluster.datastore.messages;
10 import static java.util.Objects.requireNonNull;
12 import org.eclipse.jdt.annotation.NonNull;
15 * A message sent to the ShardManager to dynamically add a new local shard
16 * that is a replica for an existing shard that is already available in the
20 public class AddShardReplica {
22 private final String shardName;
27 * @param shardName name of the shard that is to be locally replicated.
29 public AddShardReplica(@NonNull String shardName) {
30 this.shardName = requireNonNull(shardName, "ShardName should not be null");
33 public String getShardName() {
34 return this.shardName;
38 public String toString() {
39 return "AddShardReplica[ShardName=" + shardName + "]";