2 * Copyright (c) 2016 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.sharding.messages;
11 import com.google.common.annotations.Beta;
12 import com.google.common.base.Preconditions;
13 import java.io.Serializable;
14 import org.opendaylight.controller.cluster.datastore.config.PrefixShardConfiguration;
15 import org.opendaylight.controller.cluster.sharding.ShardedDataTreeActor;
18 * Sent to the local {@link ShardedDataTreeActor} when there was a shard created
19 * on the local node. The local actor should notify the remote actors with {@link PrefixShardCreated} which should
20 * create the required frontend/backend shards.
23 public class CreatePrefixShard implements Serializable {
24 private static final long serialVersionUID = 1L;
26 private final PrefixShardConfiguration configuration;
28 public CreatePrefixShard(final PrefixShardConfiguration configuration) {
29 this.configuration = Preconditions.checkNotNull(configuration);
32 public PrefixShardConfiguration getConfiguration() {
38 public String toString() {
39 return "CreatePrefixShard{"