Deprecate DOMDataTreeProducer-related classes
[controller.git] / opendaylight / md-sal / sal-distributed-datastore / src / main / java / org / opendaylight / controller / cluster / sharding / messages / PrefixShardRemovalLookup.java
1 /*
2  * Copyright (c) 2016 Cisco Systems, Inc. and others.  All rights reserved.
3  *
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
7  */
8 package org.opendaylight.controller.cluster.sharding.messages;
9
10 import static java.util.Objects.requireNonNull;
11
12 import org.opendaylight.controller.cluster.sharding.ShardedDataTreeActor;
13 import org.opendaylight.mdsal.dom.api.DOMDataTreeIdentifier;
14
15 /**
16  * Sent to the local {@link ShardedDataTreeActor} to initiate the lookup of the shard, once the shard is removed from
17  * the system entirely the actor responds with a success.
18  */
19 @Deprecated(forRemoval = true)
20 public class PrefixShardRemovalLookup {
21     private final DOMDataTreeIdentifier prefix;
22
23     public PrefixShardRemovalLookup(final DOMDataTreeIdentifier prefix) {
24         this.prefix = requireNonNull(prefix);
25     }
26
27     public DOMDataTreeIdentifier getPrefix() {
28         return prefix;
29     }
30
31     @Override
32     public String toString() {
33         return "PrefixShardRemovalLookup{" + "prefix=" + prefix + '}';
34     }
35 }

©2013 OpenDaylight, A Linux Foundation Collaborative Project. All Rights Reserved.
OpenDaylight is a registered trademark of The OpenDaylight Project, Inc.
Linux Foundation and OpenDaylight are registered trademarks of the Linux Foundation.
Linux is a registered trademark of Linus Torvalds.