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
8 package org.opendaylight.controller.cluster.sharding.messages;
10 import static java.util.Objects.requireNonNull;
12 import com.google.common.annotations.Beta;
13 import java.io.Serializable;
14 import org.opendaylight.controller.cluster.sharding.ShardedDataTreeActor;
15 import org.opendaylight.mdsal.dom.api.DOMDataTreeIdentifier;
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 LookupPrefixShard implements Serializable {
24 private static final long serialVersionUID = 1L;
26 private final DOMDataTreeIdentifier prefix;
28 public LookupPrefixShard(final DOMDataTreeIdentifier prefix) {
29 this.prefix = requireNonNull(prefix);
32 public DOMDataTreeIdentifier getPrefix() {
38 public String toString() {
39 return "LookupPrefixShard{"