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%2FModuleShardConfiguration.java;h=f52687f698ab8d178a6fa015422269e4d7fc8e9a;hb=e7da6f458d9278b2276671dc3164c9cde24ac9ef;hp=e4b88fb07d95084851e46efe6ff6203708dad0ee;hpb=5273c33b6f2051a7e3b1afcc4eeae4e457b6f26c;p=controller.git diff --git a/opendaylight/md-sal/sal-distributed-datastore/src/main/java/org/opendaylight/controller/cluster/datastore/config/ModuleShardConfiguration.java b/opendaylight/md-sal/sal-distributed-datastore/src/main/java/org/opendaylight/controller/cluster/datastore/config/ModuleShardConfiguration.java index e4b88fb07d..f52687f698 100644 --- a/opendaylight/md-sal/sal-distributed-datastore/src/main/java/org/opendaylight/controller/cluster/datastore/config/ModuleShardConfiguration.java +++ b/opendaylight/md-sal/sal-distributed-datastore/src/main/java/org/opendaylight/controller/cluster/datastore/config/ModuleShardConfiguration.java @@ -12,6 +12,7 @@ import java.net.URI; import java.util.Collection; import javax.annotation.Nonnull; import javax.annotation.Nullable; +import org.opendaylight.controller.cluster.access.concepts.MemberName; /** * Encapsulates information for adding a new module shard configuration. @@ -23,7 +24,7 @@ public class ModuleShardConfiguration { private final String moduleName; private final String shardName; private final String shardStrategyName; - private final Collection shardMemberNames; + private final Collection shardMemberNames; /** * Constructs a new instance. @@ -36,7 +37,7 @@ public class ModuleShardConfiguration { * @param shardMemberNames the names of the shard's member replicas. */ public ModuleShardConfiguration(@Nonnull URI namespace, @Nonnull String moduleName, @Nonnull String shardName, - @Nullable String shardStrategyName, @Nonnull Collection shardMemberNames) { + @Nullable String shardStrategyName, @Nonnull Collection shardMemberNames) { this.namespace = Preconditions.checkNotNull(namespace, "nameSpace should not be null"); this.moduleName = Preconditions.checkNotNull(moduleName, "moduleName should not be null"); this.shardName = Preconditions.checkNotNull(shardName, "shardName should not be null"); @@ -60,7 +61,14 @@ public class ModuleShardConfiguration { return shardStrategyName; } - public Collection getShardMemberNames() { + public Collection getShardMemberNames() { return shardMemberNames; } + + @Override + public String toString() { + return "ModuleShardConfiguration [namespace=" + namespace + ", moduleName=" + moduleName + ", shardName=" + + shardName + ", shardMemberNames=" + shardMemberNames + ", shardStrategyName=" + shardStrategyName + + "]"; + } }