X-Git-Url: https://git.opendaylight.org/gerrit/gitweb?a=blobdiff_plain;f=opendaylight%2Fmd-sal%2Fsal-distributed-datastore%2Fsrc%2Fmain%2Fjava%2Forg%2Fopendaylight%2Fcontroller%2Fcluster%2Fsharding%2FDistributedShardFactory.java;fp=opendaylight%2Fmd-sal%2Fsal-distributed-datastore%2Fsrc%2Fmain%2Fjava%2Forg%2Fopendaylight%2Fcontroller%2Fcluster%2Fsharding%2FDistributedShardFactory.java;h=0000000000000000000000000000000000000000;hb=5f587c3e2bfabc09fec49463d04a6fbeba414e9c;hp=c3c3a25a2bc645242291f2758b48692577fc319f;hpb=a35607c5040d0fd561529fde3032c9f49393deeb;p=controller.git 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 deleted file mode 100644 index c3c3a25a2b..0000000000 --- a/opendaylight/md-sal/sal-distributed-datastore/src/main/java/org/opendaylight/controller/cluster/sharding/DistributedShardFactory.java +++ /dev/null @@ -1,40 +0,0 @@ -/* - * Copyright (c) 2016 Cisco Systems, Inc. and others. All rights reserved. - * - * This program and the accompanying materials are made available under the - * 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; -import java.util.Collection; -import java.util.concurrent.CompletionStage; -import org.opendaylight.controller.cluster.access.concepts.MemberName; -import org.opendaylight.mdsal.dom.api.DOMDataTreeIdentifier; -import org.opendaylight.mdsal.dom.api.DOMDataTreeShardingConflictException; - -/** - * A factory that handles addition of new clustered shard's based on a prefix. This factory is a QoL class that handles - * all the boilerplate that comes with registration of a new clustered shard into the system and creating the backend - * 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. - * - * @param prefix Shard root - * @param replicaMembers Members that this shard is replicated on, has to have at least one Member even if the shard - * should not be replicated. - * @return A future that will be completed with a DistributedShardRegistration once the backend and frontend shards - * are spawned. - * @throws DOMDataTreeShardingConflictException If the initial check for a conflict on the local node fails, the - * sharding configuration won't be updated if this exception is thrown. - */ - CompletionStage - createDistributedShard(DOMDataTreeIdentifier prefix, Collection replicaMembers) - throws DOMDataTreeShardingConflictException; -} \ No newline at end of file