X-Git-Url: https://git.opendaylight.org/gerrit/gitweb?p=controller.git;a=blobdiff_plain;f=opendaylight%2Fmd-sal%2Fsal-distributed-datastore%2Fsrc%2Fmain%2Fjava%2Forg%2Fopendaylight%2Fcontroller%2Fcluster%2Fsharding%2FDistributedShardFactory.java;h=c3c3a25a2bc645242291f2758b48692577fc319f;hp=f1cdcd8dda9476c65e9637968fe11480b0ae4dfe;hb=da174be7e22b16d4ac80cccefdc52b209b700745;hpb=7204c455a1636a7fc89bcd28fe9e9000eaa81b3b diff --git a/opendaylight/md-sal/sal-distributed-datastore/src/main/java/org/opendaylight/controller/cluster/sharding/DistributedShardFactory.java b/opendaylight/md-sal/sal-distributed-datastore/src/main/java/org/opendaylight/controller/cluster/sharding/DistributedShardFactory.java index f1cdcd8dda..c3c3a25a2b 100644 --- a/opendaylight/md-sal/sal-distributed-datastore/src/main/java/org/opendaylight/controller/cluster/sharding/DistributedShardFactory.java +++ b/opendaylight/md-sal/sal-distributed-datastore/src/main/java/org/opendaylight/controller/cluster/sharding/DistributedShardFactory.java @@ -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 com.google.common.annotations.Beta; @@ -21,8 +20,8 @@ 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. * Note to register a shard without replicas you still need to provide at least one Member for the shard. @@ -38,17 +37,4 @@ public interface DistributedShardFactory { CompletionStage createDistributedShard(DOMDataTreeIdentifier prefix, Collection replicaMembers) throws DOMDataTreeShardingConflictException; - - /** - * Registration of the CDS shard that allows you to remove the shard from the system by closing the registration. - * This removal is done asynchronously. - */ - interface DistributedShardRegistration { - - /** - * Removes the shard from the system, this removal is done asynchronously, the future completes once the - * backend shard is no longer present. - */ - CompletionStage close(); - } } \ No newline at end of file