2 * Copyright (c) 2017 Cisco 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
9 package org.opendaylight.controller.cluster.datastore.messages;
11 import com.google.common.base.Preconditions;
12 import javax.annotation.Nonnull;
13 import org.opendaylight.yangtools.yang.data.api.YangInstanceIdentifier;
16 * A message sent to the ShardManager to dynamically add a new local shard
17 * that is a replica for an existing prefix shard that is already available
20 public class AddPrefixShardReplica {
22 private final YangInstanceIdentifier prefix;
27 * @param prefix prefix of the shard that is to be locally replicated.
30 public AddPrefixShardReplica(@Nonnull final YangInstanceIdentifier prefix) {
31 this.prefix = Preconditions.checkNotNull(prefix, "prefix should not be null");
34 public YangInstanceIdentifier getShardPrefix() {
39 public String toString() {
40 return "AddPrefixShardReplica[prefix=" + prefix + "]";