/* * Copyright (c) 2015 Dell Inc. and others. All rights reserved. * * This program and the accompanying materials are made available under the * terms of the Eclipse Public License v1.0 which accompanies this distribution, * and is available at http://www.eclipse.org/legal/epl-v10.html */ package org.opendaylight.controller.cluster.datastore.messages; import static java.util.Objects.requireNonNull; import org.eclipse.jdt.annotation.NonNull; /** * A message sent to the ShardManager to dynamically add a new local shard * that is a replica for an existing shard that is already available in the * cluster. */ public class AddShardReplica { private final String shardName; /** * Constructor. * * @param shardName name of the shard that is to be locally replicated. */ public AddShardReplica(@NonNull String shardName) { this.shardName = requireNonNull(shardName, "ShardName should not be null"); } public String getShardName() { return this.shardName; } @Override public String toString() { return "AddShardReplica[ShardName=" + shardName + "]"; } }