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%2Fdatastore%2Fshardstrategy%2FShardStrategy.java;h=496069d0a198b354ca8a671000366a229209ab97;hp=9a05c381ea556aeccf10013952aab453282c3dba;hb=a81d98f692b80c45bce3fe6a87e731abfb012a9f;hpb=c74d5c2399e500fe3e690edc8cee497b1cb6f867 diff --git a/opendaylight/md-sal/sal-distributed-datastore/src/main/java/org/opendaylight/controller/cluster/datastore/shardstrategy/ShardStrategy.java b/opendaylight/md-sal/sal-distributed-datastore/src/main/java/org/opendaylight/controller/cluster/datastore/shardstrategy/ShardStrategy.java index 9a05c381ea..496069d0a1 100644 --- a/opendaylight/md-sal/sal-distributed-datastore/src/main/java/org/opendaylight/controller/cluster/datastore/shardstrategy/ShardStrategy.java +++ b/opendaylight/md-sal/sal-distributed-datastore/src/main/java/org/opendaylight/controller/cluster/datastore/shardstrategy/ShardStrategy.java @@ -11,17 +11,18 @@ package org.opendaylight.controller.cluster.datastore.shardstrategy; import org.opendaylight.yangtools.yang.data.api.YangInstanceIdentifier; /** - * The role of ShardStrategy is to figure out which Shards a given piece of data belongs to + * The role of ShardStrategy is to figure out which shards a given piece of data belongs to. */ public interface ShardStrategy { - /** - * Find the name of the shard in which the data pointed to by the specified path belongs in - *

- * Should return the name of the default shard DefaultShardStrategy.DEFAULT_SHARD - * if no matching shard was found - * - * @param path The location of the data in the logical tree - * @return - */ - String findShard(YangInstanceIdentifier path); + /** + * Find the name of the shard in which the data pointed to by the specified path belongs in. + * + *

+ * Should return the name of the default shard DefaultShardStrategy.DEFAULT_SHARD + * if no matching shard was found + * + * @param path the location of the data in the logical tree + * @return the corresponding shard name. + */ + String findShard(YangInstanceIdentifier path); }