Class ModuleShardConfiguration
- java.lang.Object
-
- org.opendaylight.controller.cluster.datastore.config.ModuleShardConfiguration
-
public class ModuleShardConfiguration extends Object
Encapsulates information for adding a new module shard configuration.- Author:
- Thomas Pantelis
-
-
Constructor Summary
Constructors Constructor Description ModuleShardConfiguration(@NonNull org.opendaylight.yangtools.yang.common.XMLNamespace namespace, @NonNull String moduleName, @NonNull String shardName, @Nullable String shardStrategyName, @NonNull Collection<org.opendaylight.controller.cluster.access.concepts.MemberName> shardMemberNames)Constructs a new instance.
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description StringgetModuleName()org.opendaylight.yangtools.yang.common.XMLNamespacegetNamespace()Collection<org.opendaylight.controller.cluster.access.concepts.MemberName>getShardMemberNames()StringgetShardName()StringgetShardStrategyName()StringtoString()
-
-
-
Constructor Detail
-
ModuleShardConfiguration
public ModuleShardConfiguration(@NonNull org.opendaylight.yangtools.yang.common.XMLNamespace namespace, @NonNull String moduleName, @NonNull String shardName, @Nullable String shardStrategyName, @NonNull Collection<org.opendaylight.controller.cluster.access.concepts.MemberName> shardMemberNames)Constructs a new instance.- Parameters:
namespace- the name space of the module.moduleName- the name of the module.shardName- the name of the shard.shardStrategyName- the name of the sharding strategy (eg "module"). If null the default strategy is used.shardMemberNames- the names of the shard's member replicas.
-
-
Method Detail
-
getNamespace
public org.opendaylight.yangtools.yang.common.XMLNamespace getNamespace()
-
getModuleName
public String getModuleName()
-
getShardName
public String getShardName()
-
getShardStrategyName
public String getShardStrategyName()
-
getShardMemberNames
public Collection<org.opendaylight.controller.cluster.access.concepts.MemberName> getShardMemberNames()
-
-