@Nonnull Collection<String> 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);
* Returns a unique set of all member names configured for all shards.
*/
Collection<String> 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);
}