X-Git-Url: https://git.opendaylight.org/gerrit/gitweb?a=blobdiff_plain;ds=sidebyside;f=opendaylight%2Fmd-sal%2Fsal-distributed-datastore%2Fsrc%2Fmain%2Fjava%2Forg%2Fopendaylight%2Fcontroller%2Fcluster%2Fdatastore%2Fconfig%2FConfiguration.java;fp=opendaylight%2Fmd-sal%2Fsal-distributed-datastore%2Fsrc%2Fmain%2Fjava%2Forg%2Fopendaylight%2Fcontroller%2Fcluster%2Fdatastore%2Fconfig%2FConfiguration.java;h=fa823a7285cab11db22b9f8685d30ccd2fbd91f4;hb=4e3f49788c05730b29468deebc2aaa4ed0d94eef;hp=b6122b3d29f4f07eada831feaa5765c3a073047f;hpb=104ce145c9cd637c9b1caecfe0fe02c4ce4f343c;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 b6122b3d29..fa823a7285 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 @@ -12,6 +12,7 @@ import java.util.Collection; import java.util.Set; import javax.annotation.Nonnull; import javax.annotation.Nullable; +import org.opendaylight.controller.cluster.access.concepts.MemberName; import org.opendaylight.controller.cluster.datastore.shardstrategy.ShardStrategy; public interface Configuration { @@ -19,7 +20,7 @@ public interface Configuration { /** * Returns all the shard names that belong on the member by the given name. */ - @Nonnull Collection getMemberShardNames(@Nonnull String memberName); + @Nonnull Collection getMemberShardNames(@Nonnull MemberName memberName); /** * Returns the module name for the given namespace name or null if not found. @@ -34,7 +35,7 @@ public interface Configuration { /** * Returns the member replicas for the given shard name. */ - @Nonnull Collection getMembersFromShardName(@Nonnull String shardName); + @Nonnull Collection getMembersFromShardName(@Nonnull String shardName); /** * Returns the ShardStrategy for the given module name or null if the module is not found. @@ -54,7 +55,7 @@ public interface Configuration { /** * Returns a unique set of all member names configured for all shards. */ - Collection getUniqueMemberNamesForAllShards(); + Collection getUniqueMemberNamesForAllShards(); /* * Verifies if the given module shard in available in the cluster @@ -64,10 +65,10 @@ public interface Configuration { /** * Adds the given member as the new replica for the given shardName */ - void addMemberReplicaForShard (String shardName, String memberName); + void addMemberReplicaForShard (String shardName, MemberName memberName); /** * Removes the given member as a replica for the given shardName */ - void removeMemberReplicaForShard (String shardName, String memberName); + void removeMemberReplicaForShard (String shardName, MemberName memberName); }