Deprecate DOMDataTreeProducer-related classes 61/95161/6
authorRobert Varga <robert.varga@pantheon.tech>
Sun, 14 Feb 2021 09:00:07 +0000 (10:00 +0100)
committerRobert Varga <robert.varga@pantheon.tech>
Fri, 19 Mar 2021 08:55:36 +0000 (09:55 +0100)
DOMDataTreeProducer is being removed by upstream, deprecate our
constructs relying on it.

JIRA: CONTROLLER-1976
Change-Id: Ib1d6d84a2023bdb9964b6fa2d337924a7359e459
Signed-off-by: Robert Varga <robert.varga@pantheon.tech>
45 files changed:
opendaylight/md-sal/cds-dom-api/src/main/java/org/opendaylight/controller/cluster/dom/api/CDSDataTreeProducer.java
opendaylight/md-sal/cds-dom-api/src/main/java/org/opendaylight/controller/cluster/dom/api/CDSShardAccess.java
opendaylight/md-sal/sal-distributed-datastore/src/main/java/org/opendaylight/controller/cluster/databroker/actors/dds/ClientTransaction.java
opendaylight/md-sal/sal-distributed-datastore/src/main/java/org/opendaylight/controller/cluster/databroker/actors/dds/ClientTransactionCursor.java
opendaylight/md-sal/sal-distributed-datastore/src/main/java/org/opendaylight/controller/cluster/sharding/CDSShardAccessImpl.java
opendaylight/md-sal/sal-distributed-datastore/src/main/java/org/opendaylight/controller/cluster/sharding/DOMDataTreeShardCreationFailedException.java
opendaylight/md-sal/sal-distributed-datastore/src/main/java/org/opendaylight/controller/cluster/sharding/DistributedShardChangePublisher.java
opendaylight/md-sal/sal-distributed-datastore/src/main/java/org/opendaylight/controller/cluster/sharding/DistributedShardFactory.java
opendaylight/md-sal/sal-distributed-datastore/src/main/java/org/opendaylight/controller/cluster/sharding/DistributedShardFrontend.java
opendaylight/md-sal/sal-distributed-datastore/src/main/java/org/opendaylight/controller/cluster/sharding/DistributedShardModification.java
opendaylight/md-sal/sal-distributed-datastore/src/main/java/org/opendaylight/controller/cluster/sharding/DistributedShardModificationContext.java
opendaylight/md-sal/sal-distributed-datastore/src/main/java/org/opendaylight/controller/cluster/sharding/DistributedShardModificationCursor.java
opendaylight/md-sal/sal-distributed-datastore/src/main/java/org/opendaylight/controller/cluster/sharding/DistributedShardModificationFactory.java
opendaylight/md-sal/sal-distributed-datastore/src/main/java/org/opendaylight/controller/cluster/sharding/DistributedShardModificationFactoryBuilder.java
opendaylight/md-sal/sal-distributed-datastore/src/main/java/org/opendaylight/controller/cluster/sharding/DistributedShardRegistration.java
opendaylight/md-sal/sal-distributed-datastore/src/main/java/org/opendaylight/controller/cluster/sharding/DistributedShardedDOMDataTree.java
opendaylight/md-sal/sal-distributed-datastore/src/main/java/org/opendaylight/controller/cluster/sharding/LookupTask.java
opendaylight/md-sal/sal-distributed-datastore/src/main/java/org/opendaylight/controller/cluster/sharding/OSGiDistributedShardedDOMDataTree.java
opendaylight/md-sal/sal-distributed-datastore/src/main/java/org/opendaylight/controller/cluster/sharding/PrefixedShardConfigUpdateHandler.java
opendaylight/md-sal/sal-distributed-datastore/src/main/java/org/opendaylight/controller/cluster/sharding/PrefixedShardConfigWriter.java
opendaylight/md-sal/sal-distributed-datastore/src/main/java/org/opendaylight/controller/cluster/sharding/RoleChangeListenerActor.java
opendaylight/md-sal/sal-distributed-datastore/src/main/java/org/opendaylight/controller/cluster/sharding/ShardProxyProducer.java
opendaylight/md-sal/sal-distributed-datastore/src/main/java/org/opendaylight/controller/cluster/sharding/ShardProxyTransaction.java
opendaylight/md-sal/sal-distributed-datastore/src/main/java/org/opendaylight/controller/cluster/sharding/ShardedDataTreeActor.java
opendaylight/md-sal/sal-distributed-datastore/src/main/java/org/opendaylight/controller/cluster/sharding/ShardingServiceAddressResolver.java
opendaylight/md-sal/sal-distributed-datastore/src/main/java/org/opendaylight/controller/cluster/sharding/messages/InitConfigListener.java
opendaylight/md-sal/sal-distributed-datastore/src/main/java/org/opendaylight/controller/cluster/sharding/messages/LookupPrefixShard.java
opendaylight/md-sal/sal-distributed-datastore/src/main/java/org/opendaylight/controller/cluster/sharding/messages/NotifyProducerCreated.java
opendaylight/md-sal/sal-distributed-datastore/src/main/java/org/opendaylight/controller/cluster/sharding/messages/NotifyProducerRemoved.java
opendaylight/md-sal/sal-distributed-datastore/src/main/java/org/opendaylight/controller/cluster/sharding/messages/PrefixShardCreated.java
opendaylight/md-sal/sal-distributed-datastore/src/main/java/org/opendaylight/controller/cluster/sharding/messages/PrefixShardRemovalLookup.java
opendaylight/md-sal/sal-distributed-datastore/src/main/java/org/opendaylight/controller/cluster/sharding/messages/PrefixShardRemoved.java
opendaylight/md-sal/sal-distributed-datastore/src/main/java/org/opendaylight/controller/cluster/sharding/messages/ProducerCreated.java
opendaylight/md-sal/sal-distributed-datastore/src/main/java/org/opendaylight/controller/cluster/sharding/messages/ProducerRemoved.java
opendaylight/md-sal/sal-distributed-datastore/src/main/java/org/opendaylight/controller/cluster/sharding/messages/StartConfigShardLookup.java
opendaylight/md-sal/sal-distributed-datastore/src/test/java/org/opendaylight/controller/cluster/databroker/actors/dds/ClientTransactionCursorTest.java
opendaylight/md-sal/sal-distributed-datastore/src/test/java/org/opendaylight/controller/cluster/sharding/CDSShardAccessImplTest.java
opendaylight/md-sal/sal-distributed-datastore/src/test/java/org/opendaylight/controller/cluster/sharding/DistributedShardFrontendTest.java
opendaylight/md-sal/sal-distributed-datastore/src/test/java/org/opendaylight/controller/cluster/sharding/DistributedShardedDOMDataTreeRemotingTest.java
opendaylight/md-sal/sal-distributed-datastore/src/test/java/org/opendaylight/controller/cluster/sharding/DistributedShardedDOMDataTreeTest.java
opendaylight/md-sal/sal-distributed-datastore/src/test/java/org/opendaylight/controller/cluster/sharding/RoleChangeListenerActorTest.java
opendaylight/md-sal/samples/clustering-test-app/provider/src/main/java/org/opendaylight/controller/clustering/it/provider/impl/IdIntsDOMDataTreeLIstener.java
opendaylight/md-sal/samples/clustering-test-app/provider/src/main/java/org/opendaylight/controller/clustering/it/provider/impl/PrefixLeaderHandler.java
opendaylight/md-sal/samples/clustering-test-app/provider/src/main/java/org/opendaylight/controller/clustering/it/provider/impl/PrefixShardHandler.java
opendaylight/md-sal/samples/clustering-test-app/provider/src/main/java/org/opendaylight/controller/clustering/it/provider/impl/ProduceTransactionsHandler.java

index 5aa88a22c0de291cbba757139944edef4fb18ea0..6ac2f920f6dd097923227322cb3cb2f47cbb7da5 100644 (file)
@@ -19,6 +19,7 @@ import org.opendaylight.mdsal.dom.api.DOMDataTreeProducer;
  * @author Robert Varga
  */
 @Beta
+@Deprecated(forRemoval = true)
 public interface CDSDataTreeProducer extends DOMDataTreeProducer {
     /**
      * Return a {@link CDSShardAccess} handle. This handle will remain valid
index 2051e21d64cfe5efe178d8b5387b86e94ee1fa50..12303935e0bd57dc4065d168866b0d06e13c8032 100644 (file)
@@ -19,6 +19,7 @@ import org.opendaylight.mdsal.dom.api.DOMDataTreeIdentifier;
  * @author Robert Varga
  */
 @Beta
+@Deprecated(forRemoval = true)
 public interface CDSShardAccess {
     /**
      * Return the shard identifier.
index c706d99a1b3bb0aea1ef8f16701ea0c9404c0f68..5a28e692aaadfb4f04a9ea41f88690df6fe6b2ee 100644 (file)
@@ -64,6 +64,7 @@ public class ClientTransaction extends AbstractClientHandle<AbstractProxyTransac
         return ensureProxy(path);
     }
 
+    @Deprecated(forRemoval = true)
     public DOMDataTreeWriteCursor openCursor() {
         Preconditions.checkState(cursor == null, "Transaction %s has open cursor", getIdentifier());
         cursor = new ClientTransactionCursor(this);
index 8c32a597dcdeccc7ad72169cb9fb275a634a9918..3aeac6abd84baf576bd90e247a80353e58936f23 100644 (file)
@@ -21,6 +21,7 @@ import org.opendaylight.yangtools.yang.data.api.schema.NormalizedNode;
  *
  * @author Robert Varga
  */
+@Deprecated(forRemoval = true)
 final class ClientTransactionCursor implements DOMDataTreeWriteCursor {
     private YangInstanceIdentifier current = YangInstanceIdentifier.empty();
     private final ClientTransaction parent;
index 300759532d89a40cfa9cb41a0fa99961a174c380..0e84d046d21b162f7e94dc2da9d942c06ba4ee3a 100644 (file)
@@ -51,6 +51,7 @@ import scala.concurrent.Future;
  * creates instances of this class has to call {@link #close()} once it is no
  * longer valid.
  */
+@Deprecated(forRemoval = true)
 final class CDSShardAccessImpl implements CDSShardAccess, LeaderLocationListener, AutoCloseable {
     private static final Logger LOG = LoggerFactory.getLogger(CDSShardAccessImpl.class);
 
@@ -164,7 +165,7 @@ final class CDSShardAccessImpl implements CDSShardAccess, LeaderLocationListener
 
         listeners.add(listener);
 
-        return new LeaderLocationListenerRegistration<L>() {
+        return new LeaderLocationListenerRegistration<>() {
             @Override
             public L getInstance() {
                 return listener;
index c9b2c305848ba7c410d498c28bed21e2dba35b8b..f69bf066611c9d60d4957b8834f7b12fcb2cc498 100644 (file)
@@ -14,6 +14,7 @@ import org.eclipse.jdt.annotation.NonNull;
  * Exception thrown when there was a at any point during the creation of a shard via {@link DistributedShardFactory}.
  */
 @Beta
+@Deprecated(forRemoval = true)
 public class DOMDataTreeShardCreationFailedException extends Exception {
     private static final long serialVersionUID = 1L;
 
index bcb73dbce2f50d418b3388aa5d2c37e145810c20..db8e1edebde2e6a2d3f1b72253e6d5a1f27e263e 100644 (file)
@@ -45,6 +45,7 @@ import org.opendaylight.yangtools.yang.data.impl.schema.tree.SchemaValidationFai
 import org.slf4j.Logger;
 import org.slf4j.LoggerFactory;
 
+@Deprecated(forRemoval = true)
 public class DistributedShardChangePublisher
         extends AbstractRegistrationTree<AbstractDOMDataTreeChangeListenerRegistration<?>>
         implements DOMStoreTreeChangePublisher {
index fba71ab11771d1fd60e91c9b24e1ee4f2b7ab8b7..c3c3a25a2bc645242291f2758b48692577fc319f 100644 (file)
@@ -20,6 +20,7 @@ import org.opendaylight.mdsal.dom.api.DOMDataTreeShardingConflictException;
  * shard/replicas that come along with it.
  */
 @Beta
+@Deprecated(forRemoval = true)
 public interface DistributedShardFactory {
     /**
      * Register a new shard that is rooted at the desired prefix with replicas on the provided members.
index 4d7f4ef36d8c52fee192e761a2e0a22065e10833..81322cba738a61f0c23fc0bad0ad0f126bd7fdb8 100644 (file)
@@ -35,6 +35,7 @@ import org.slf4j.LoggerFactory;
 /**
  * Proxy implementation of a shard that creates forwarding producers to the backend shard.
  */
+@Deprecated(forRemoval = true)
 class DistributedShardFrontend implements ReadableWriteableDOMDataTreeShard {
 
     private static final Logger LOG = LoggerFactory.getLogger(DistributedShardFrontend.class);
index 1592dc7dd3259201d0133024557244a14e4c9e89..25fab74716d8b4b37a5926f523fa814ab7f51d3a 100644 (file)
@@ -24,6 +24,7 @@ import org.opendaylight.yangtools.yang.data.api.YangInstanceIdentifier.PathArgum
  * Shard modification that consists of the whole shard context, provides cursors which correctly delegate to subshards
  * if any are present.
  */
+@Deprecated(forRemoval = true)
 public class DistributedShardModification extends WriteableNodeWithSubshard {
 
     private final DistributedShardModificationContext context;
index 9d5168420f34adeab19e277075f62119b3c84b6b..5b3c5313a937ce6b63eec2310234cf464ea55631 100644 (file)
@@ -16,10 +16,11 @@ import org.opendaylight.mdsal.dom.spi.store.DOMStoreThreePhaseCommitCohort;
 /**
  * The context for a single shards modification, keeps a ClientTransaction so it can route requests correctly.
  */
+@Deprecated(forRemoval = true)
 public class DistributedShardModificationContext {
 
-    private ClientTransaction transaction;
-    private DOMDataTreeIdentifier identifier;
+    private final ClientTransaction transaction;
+    private final DOMDataTreeIdentifier identifier;
     private DOMDataTreeWriteCursor cursor;
 
     public DistributedShardModificationContext(final ClientTransaction transaction,
index 37ccf60dbd7b171d0d4e74b7dc59122fe5cf1960..ed771071c755267a3a9a21a344728cb6459319d3 100644 (file)
@@ -5,7 +5,6 @@
  * 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.sharding;
 
 import org.opendaylight.mdsal.dom.spi.shard.AbstractDataModificationCursor;
@@ -15,9 +14,10 @@ import org.opendaylight.mdsal.dom.spi.shard.WriteCursorStrategy;
  * Internal cursor implementation consisting of WriteCursorStrategies which forwards writes to foreign modifications
  * if any.
  */
+@Deprecated(forRemoval = true)
 public class DistributedShardModificationCursor extends AbstractDataModificationCursor<DistributedShardModification> {
 
-    private ShardProxyTransaction parent;
+    private final ShardProxyTransaction parent;
 
     public DistributedShardModificationCursor(final DistributedShardModification root,
                                               final ShardProxyTransaction parent) {
index 37ac32ac3e9a154e0aa770f7c81daa6eb5df21f6..f7bec4093b5ae80081b5b86ead4cca6dcc12910a 100644 (file)
@@ -21,6 +21,7 @@ import org.opendaylight.yangtools.yang.data.api.YangInstanceIdentifier.PathArgum
 /**
  * Factory for {@link DistributedShardModification}.
  */
+@Deprecated(forRemoval = true)
 public final class DistributedShardModificationFactory {
     private final Map<DOMDataTreeIdentifier, ForeignShardModificationContext> childShards;
     private final Map<PathArgument, WriteableModificationNode> children;
index 42b972318b4d68d838bb0681cdf8d7001a21fb0a..93e4d963a8c5394d5b24c82feea79f64f187059a 100644 (file)
@@ -5,7 +5,6 @@
  * 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.sharding;
 
 import org.opendaylight.mdsal.dom.api.DOMDataTreeIdentifier;
@@ -14,6 +13,7 @@ import org.opendaylight.mdsal.dom.spi.shard.AbstractShardModificationFactoryBuil
 /**
  * Builder for {@link DistributedShardModificationFactory}.
  */
+@Deprecated(forRemoval = true)
 public class DistributedShardModificationFactoryBuilder
         extends AbstractShardModificationFactoryBuilder<DistributedShardModificationFactory> {
 
index e711bd6aa8df2edcd29e9be3409812843f1f4e3c..bb51203e4a73a92b36d66e7e31b5813f9b01058d 100644 (file)
@@ -97,6 +97,7 @@ import scala.concurrent.duration.FiniteDuration;
  * A layer on top of DOMDataTreeService that distributes producer/shard registrations to remote nodes via
  * {@link ShardedDataTreeActor}. Also provides QoL method for addition of prefix based clustered shard into the system.
  */
+@Deprecated(forRemoval = true)
 public class DistributedShardedDOMDataTree implements DOMDataTreeService, DOMDataTreeShardingService,
         DistributedShardFactory {
 
index ad4215c965deaf483b47145a7d1667c6599460ad..244833da005333270e51c1d1bfef3a65cb8e9b76 100644 (file)
@@ -17,6 +17,7 @@ import org.eclipse.jdt.annotation.Nullable;
  * Base class for lookup tasks. Lookup tasks are supposed to run repeatedly until successful lookup or maximum retries
  * are hit. This class is NOT thread-safe.
  */
+@Deprecated(forRemoval = true)
 abstract class LookupTask implements Runnable {
     private final int maxRetries;
     private final ActorRef replyTo;
index da92b2dbf990c9f615c7be1a09914145b8eb1285..534811167e4e9a08f4d58a79674e016be83c63fc 100644 (file)
@@ -31,6 +31,7 @@ import org.slf4j.Logger;
 import org.slf4j.LoggerFactory;
 
 @Component(immediate = true, property = "type=default")
+@Deprecated(forRemoval = true)
 public final class OSGiDistributedShardedDOMDataTree
         implements DOMDataTreeService, DOMDataTreeShardingService, DistributedShardFactory {
     private static final Logger LOG = LoggerFactory.getLogger(OSGiDistributedShardedDOMDataTree.class);
index 3e5a3adfa10ac23423fd07ed3edfe9523a56a210..44b68a98052daeb5d7992833520c9a3d9ba1b95b 100644 (file)
@@ -46,6 +46,7 @@ import org.slf4j.LoggerFactory;
  * notifies handling actor with {@link PrefixShardCreated} and
  * {@link PrefixShardRemoved} messages.
  */
+@Deprecated(forRemoval = true)
 public class PrefixedShardConfigUpdateHandler {
 
     private static final Logger LOG = LoggerFactory.getLogger(PrefixedShardConfigUpdateHandler.class);
index dcb879bd0de29f0fabebfea856b6925532d8323c..6d9c8e92133a47f2042812f0bebc610c96254f87 100644 (file)
@@ -45,6 +45,7 @@ import org.slf4j.LoggerFactory;
  * by {@link DistributedShardedDOMDataTree} for updating
  * prefix-shard-configuration upon creating and de-spawning prefix-based shards.
  */
+@Deprecated(forRemoval = true)
 class PrefixedShardConfigWriter {
 
     private static final Logger LOG = LoggerFactory.getLogger(PrefixedShardConfigWriter.class);
index 8ad10bc5e7e8c0dc1c86349fa775481e64830dc3..f8e19180ddd13e185ad0654b98a08ee12b06fb98 100644 (file)
@@ -25,6 +25,7 @@ import org.opendaylight.controller.cluster.notifications.RoleChangeNotification;
  * {@link LeaderLocationListener#onLeaderLocationChanged(LeaderLocation)}
  * events.
  */
+@Deprecated(forRemoval = true)
 public final class RoleChangeListenerActor extends AbstractUntypedActor {
     private final LeaderLocationListener leaderLocationListener;
     private final ActorRef roleChangeNotifier;
index 602566bda652aa27fb7425ef3dccc55aba38dd99..2990c62580b16d6dbdb89ba1205e645d03a83257 100644 (file)
@@ -20,6 +20,7 @@ import org.opendaylight.mdsal.dom.spi.shard.DOMDataTreeShardWriteTransaction;
 /**
  * Proxy producer implementation that creates transactions that forward all calls to {@link DataStoreClient}.
  */
+@Deprecated(forRemoval = true)
 class ShardProxyProducer implements DOMDataTreeShardProducer {
     private final DOMDataTreeIdentifier shardRoot;
     private final Collection<DOMDataTreeIdentifier> prefixes;
index c0d32c91a9df8d3400e9cef8c26aa5047b3f11ce..fde000f9fd006345c6ac86d94338e7a33024b79b 100644 (file)
@@ -38,6 +38,7 @@ import org.slf4j.LoggerFactory;
  * Proxy {@link DOMDataTreeShardWriteTransaction} that creates a proxy cursor that translates all calls into
  * {@link ClientTransaction} calls.
  */
+@Deprecated(forRemoval = true)
 class ShardProxyTransaction implements DOMDataTreeShardWriteTransaction {
 
     private static final Logger LOG = LoggerFactory.getLogger(ShardProxyTransaction.class);
index f7c0d223072860149a57c3f91f216465963ac779..52c3d25faa18ef1de438d06e0c468f05998bf1a0 100644 (file)
@@ -74,6 +74,7 @@ import scala.concurrent.duration.FiniteDuration;
  * Actor that tracks currently open producers/shards on remote nodes and handles notifications of remote
  * nodes of newly open producers/shards on the local node.
  */
+@Deprecated(forRemoval = true)
 public class ShardedDataTreeActor extends AbstractUntypedPersistentActor {
 
     private static final Logger LOG = LoggerFactory.getLogger(ShardedDataTreeActor.class);
index 379940db6a6833ed00a47cad2d2050b543489b18..1ad5c389e233e1ff1c5ac90816a06ca68b3309c1 100644 (file)
@@ -20,6 +20,7 @@ import org.opendaylight.controller.cluster.access.concepts.MemberName;
 /**
  * Resolver for remote {@link ShardedDataTreeActor}'s.
  */
+@Deprecated(forRemoval = true)
 public class ShardingServiceAddressResolver {
 
     private final ConcurrentMap<MemberName, Address> memberNameToAddress = new ConcurrentHashMap<>();
index fbdf3f8a4d075c127ef1d68b3e3efc92421fe7e1..9970e0591cb2b58084657a89630689ae74a311c4 100644 (file)
@@ -12,6 +12,7 @@ package org.opendaylight.controller.cluster.sharding.messages;
  * Message sent to the local ShardManager, once the shard configuration shard is ready and the ShardManager should
  * start its listener.
  */
+@Deprecated(forRemoval = true)
 public final class InitConfigListener {
 
     public static final InitConfigListener INSTANCE = new InitConfigListener();
index eafb0b903177ecf90d4fcd8d296a7d1a8c2a068e..ed58338bea9fc7148725f3aac3f731959b2ced39 100644 (file)
@@ -20,6 +20,7 @@ import org.opendaylight.mdsal.dom.api.DOMDataTreeIdentifier;
  * create the required frontend/backend shards.
  */
 @Beta
+@Deprecated(forRemoval = true)
 public class LookupPrefixShard implements Serializable {
     private static final long serialVersionUID = 1L;
 
index 833fd0ea64185686723a678f5e821cb7536f99da..0c256976cf462afdfbd138a59d69e8559c026d28 100644 (file)
@@ -20,6 +20,7 @@ import org.opendaylight.mdsal.dom.api.DOMDataTreeIdentifier;
  * with success/failure based on the attempt result.
  */
 @Beta
+@Deprecated(forRemoval = true)
 public class NotifyProducerCreated implements Serializable {
     private static final long serialVersionUID = 1L;
     private final Collection<DOMDataTreeIdentifier> subtrees;
index 18af2c79cdb5a702115f62b03367e480f548fb5f..b93bbc6eba0275c8c3c084117f85374856eb68c4 100644 (file)
@@ -20,6 +20,7 @@ import org.opendaylight.mdsal.dom.api.DOMDataTreeIdentifier;
  * with success/failure based on the attempt result. If the producer doesn't exist on this node report Success.
  */
 @Beta
+@Deprecated(forRemoval = true)
 public class NotifyProducerRemoved implements Serializable {
     private static final long serialVersionUID = 1L;
     private final Collection<DOMDataTreeIdentifier> subtrees;
index d468992aee8cc04932ff884a4e85a7c097979cd1..7e0a4f685ed032200216ee50d41e4083577ba7ca 100644 (file)
@@ -21,6 +21,7 @@ import org.opendaylight.controller.cluster.sharding.ShardedDataTreeActor;
  * with only it's member present.
  */
 @Beta
+@Deprecated(forRemoval = true)
 public class PrefixShardCreated {
     private final PrefixShardConfiguration configuration;
 
index de49217d3a959c15eb95575fc6a8c81a89a02496..87daea2eb7dc1e1f54a7a32b6108761323630824 100644 (file)
@@ -16,6 +16,7 @@ import org.opendaylight.mdsal.dom.api.DOMDataTreeIdentifier;
  * Sent to the local {@link ShardedDataTreeActor} to initiate the lookup of the shard, once the shard is removed from
  * the system entirely the actor responds with a success.
  */
+@Deprecated(forRemoval = true)
 public class PrefixShardRemovalLookup {
     private final DOMDataTreeIdentifier prefix;
 
index 1890b647db4f2ed3a734745521e87931f7e75491..5187bae51a1ba1c9ebf51e5648e9da24806eaf3c 100644 (file)
@@ -19,6 +19,7 @@ import org.opendaylight.mdsal.dom.api.DOMDataTreeIdentifier;
  * in the backend ShardManager.
  */
 @Beta
+@Deprecated(forRemoval = true)
 public class PrefixShardRemoved implements Serializable {
     private static final long serialVersionUID = 1L;
 
index efdf55739be5feec9a438ab24baa847f2ecfbe99..afc9476c527ff2413401431f07227b9c9b825cd6 100644 (file)
@@ -18,6 +18,7 @@ import org.opendaylight.mdsal.dom.api.DOMDataTreeIdentifier;
  * attempt to create a producer on the local node.
  */
 @Beta
+@Deprecated(forRemoval = true)
 public class ProducerCreated {
     private final Collection<DOMDataTreeIdentifier> subtrees;
 
index 1cc33a03d66f99043a421cd6a68d1bfd6ac10454..848c7b9a46d42474d62391731788c9f3d8a019f3 100644 (file)
@@ -18,6 +18,7 @@ import org.opendaylight.mdsal.dom.api.DOMDataTreeIdentifier;
  * attempt to close a producer on the local node.
  */
 @Beta
+@Deprecated(forRemoval = true)
 public class ProducerRemoved {
 
     private final Collection<DOMDataTreeIdentifier> subtrees;
index 22e5dbf98f34b155072f0e9b4c7667bde095d073..7ba9648d1526fc52254f76cb708b511550d64ff7 100644 (file)
@@ -14,9 +14,10 @@ import org.opendaylight.mdsal.common.api.LogicalDatastoreType;
  * Message that should be sent to ShardedDataTreeActor when the lookup of the prefix config shard should begin.
  * Replied to with Succes once the shard has a leader.
  */
+@Deprecated(forRemoval = true)
 public class StartConfigShardLookup {
 
-    private LogicalDatastoreType type;
+    private final LogicalDatastoreType type;
 
     public StartConfigShardLookup(final LogicalDatastoreType type) {
         this.type = type;
index 2e7f8f3b843247107ca15df40a76ecd48d481143..b298762108a9877a6fd71769846410d941716ce7 100644 (file)
@@ -20,6 +20,7 @@ import org.opendaylight.yangtools.yang.data.api.YangInstanceIdentifier;
 import org.opendaylight.yangtools.yang.data.api.schema.ContainerNode;
 import org.opendaylight.yangtools.yang.data.impl.schema.Builders;
 
+@Deprecated(forRemoval = true)
 public class ClientTransactionCursorTest {
 
     private static final QName NODE_1 = QName.create("ns-1", "node-1");
index 3c7e8cd187628b845bc1c9b8b6db09ff70355d55..e79222fa51e56b1ca839b45735d92abbedb26209 100644 (file)
@@ -39,6 +39,7 @@ import org.opendaylight.mdsal.dom.api.DOMDataTreeIdentifier;
 import scala.concurrent.Future;
 import scala.concurrent.duration.FiniteDuration;
 
+@Deprecated(forRemoval = true)
 public class CDSShardAccessImplTest extends AbstractActorTest {
 
     private static final DOMDataTreeIdentifier TEST_ID =
index 795705ea67fabb942e95f501dfa72bbeab27fd62..aba233fe6f074ea6613f90b30433a8607e9b9e73 100644 (file)
@@ -52,6 +52,7 @@ import org.opendaylight.yangtools.yang.data.api.schema.NormalizedNode;
 import org.opendaylight.yangtools.yang.data.impl.schema.ImmutableNodes;
 import org.opendaylight.yangtools.yang.data.impl.schema.builder.impl.ImmutableContainerNodeBuilder;
 
+@Deprecated(forRemoval = true)
 public class DistributedShardFrontendTest {
 
     private static final DOMDataTreeIdentifier ROOT =
index 6f4611f25b81f975b2b40f80e767b3d7fe7f9c1f..749d69987d70218dc57f6842c4266256fd9a88e5 100644 (file)
@@ -55,6 +55,7 @@ import org.opendaylight.yangtools.yang.data.impl.schema.builder.impl.ImmutableLe
 import org.slf4j.Logger;
 import org.slf4j.LoggerFactory;
 
+@Deprecated(forRemoval = true)
 public class DistributedShardedDOMDataTreeRemotingTest extends AbstractTest {
 
     private static final Logger LOG = LoggerFactory.getLogger(DistributedShardedDOMDataTreeRemotingTest.class);
index 8f9002c2569f8022fcba7a05e6815a9084bd9024..602e2cc4077099728827640d3575a7ee15938a90 100644 (file)
@@ -93,6 +93,7 @@ import org.opendaylight.yangtools.yang.data.impl.schema.builder.impl.ImmutableMa
 import org.slf4j.Logger;
 import org.slf4j.LoggerFactory;
 
+@Deprecated(forRemoval = true)
 public class DistributedShardedDOMDataTreeTest extends AbstractTest {
 
     private static final Logger LOG = LoggerFactory.getLogger(DistributedShardedDOMDataTreeRemotingTest.class);
index ca8c05ddcbb97b81946d1b633d34f4b4c1fb3b7c..74b721c87b7bfccd235f6ff9d3998b787ab01005 100644 (file)
@@ -25,6 +25,7 @@ import org.opendaylight.controller.cluster.dom.api.LeaderLocationListener;
 import org.opendaylight.controller.cluster.notifications.LeaderStateChanged;
 import org.opendaylight.controller.cluster.notifications.RegisterRoleChangeListener;
 
+@Deprecated(forRemoval = true)
 public class RoleChangeListenerActorTest extends AbstractActorTest {
 
     @Test
index 574952e70e6bf22b9bac74639cd1b5903c0234ab..3c88f991755c10f40e83128a7a91460f450cf483 100644 (file)
@@ -25,6 +25,7 @@ import org.opendaylight.yangtools.yang.data.api.schema.tree.DataTreeCandidate;
 import org.slf4j.Logger;
 import org.slf4j.LoggerFactory;
 
+@Deprecated(forRemoval = true)
 public class IdIntsDOMDataTreeLIstener implements DOMDataTreeListener {
 
     private static final Logger LOG = LoggerFactory.getLogger(IdIntsDOMDataTreeLIstener.class);
@@ -67,7 +68,7 @@ public class IdIntsDOMDataTreeLIstener implements DOMDataTreeListener {
     }
 
     @Override
-    public void onDataTreeFailed(Collection<DOMDataTreeListeningException> causes) {
+    public void onDataTreeFailed(final Collection<DOMDataTreeListeningException> causes) {
 
     }
 
index 0d8391a7ca3882b49d61c58b7916d87d10a5c277..d808b376be9614bceefca7a52523c5260ca7d078 100644 (file)
@@ -30,6 +30,7 @@ import org.opendaylight.yangtools.yang.data.api.YangInstanceIdentifier;
 import org.slf4j.Logger;
 import org.slf4j.LoggerFactory;
 
+@Deprecated(forRemoval = true)
 public class PrefixLeaderHandler {
 
     private static final Logger LOG = LoggerFactory.getLogger(PrefixLeaderHandler.class);
index a58883c3e2befef45ef9237d2cb1e24df07ffa03..58666ecd0a9769b09bdd22b3bbab177c4089d9b4 100644 (file)
@@ -53,6 +53,7 @@ import org.opendaylight.yangtools.yang.data.impl.schema.builder.impl.ImmutableCo
 import org.slf4j.Logger;
 import org.slf4j.LoggerFactory;
 
+@Deprecated(forRemoval = true)
 public class PrefixShardHandler {
 
     private static final Logger LOG = LoggerFactory.getLogger(PrefixShardHandler.class);
index 232391209b506d076fe202641a3e4fcdcdf1b004..fc1c9f5545b80ed8509b87c3e58dc36033447663 100644 (file)
@@ -43,6 +43,7 @@ import org.opendaylight.yangtools.yang.data.impl.schema.ImmutableNodes;
 import org.slf4j.Logger;
 import org.slf4j.LoggerFactory;
 
+@Deprecated(forRemoval = true)
 public final class ProduceTransactionsHandler extends AbstractTransactionHandler {
     private static final Logger LOG = LoggerFactory.getLogger(ProduceTransactionsHandler.class);