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%2Fdatastore%2Fconfig%2FConfiguration.java;h=b6122b3d29f4f07eada831feaa5765c3a073047f;hb=87c8362c7501408b281f5ddc9b78ed7440280fa1;hp=21801c0102912f95fd6e3b29617c29cd86304c11;hpb=5273c33b6f2051a7e3b1afcc4eeae4e457b6f26c;p=controller.git diff --git a/opendaylight/md-sal/sal-distributed-datastore/src/main/java/org/opendaylight/controller/cluster/datastore/config/Configuration.java b/opendaylight/md-sal/sal-distributed-datastore/src/main/java/org/opendaylight/controller/cluster/datastore/config/Configuration.java index 21801c0102..b6122b3d29 100644 --- a/opendaylight/md-sal/sal-distributed-datastore/src/main/java/org/opendaylight/controller/cluster/datastore/config/Configuration.java +++ b/opendaylight/md-sal/sal-distributed-datastore/src/main/java/org/opendaylight/controller/cluster/datastore/config/Configuration.java @@ -22,7 +22,7 @@ public interface Configuration { @Nonnull Collection getMemberShardNames(@Nonnull String memberName); /** - * Returns the namespace for the given module name or null if not found. + * Returns the module name for the given namespace name or null if not found. */ @Nullable String getModuleNameFromNameSpace(@Nonnull String nameSpace); @@ -55,4 +55,19 @@ public interface Configuration { * Returns a unique set of all member names configured for all shards. */ Collection getUniqueMemberNamesForAllShards(); + + /* + * Verifies if the given module shard in available in the cluster + */ + boolean isShardConfigured(String shardName); + + /** + * Adds the given member as the new replica for the given shardName + */ + void addMemberReplicaForShard (String shardName, String memberName); + + /** + * Removes the given member as a replica for the given shardName + */ + void removeMemberReplicaForShard (String shardName, String memberName); }