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 XMLNamespace namespace, @NonNull String moduleName, @NonNull String shardName, @Nullable String shardStrategyName, @NonNull Collection<MemberName> shardMemberNames)
Constructs a new instance.
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description String
getModuleName()
XMLNamespace
getNamespace()
Collection<MemberName>
getShardMemberNames()
String
getShardName()
String
getShardStrategyName()
String
toString()
-
-
-
Constructor Detail
-
ModuleShardConfiguration
public ModuleShardConfiguration(@NonNull XMLNamespace namespace, @NonNull String moduleName, @NonNull String shardName, @Nullable String shardStrategyName, @NonNull Collection<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 XMLNamespace getNamespace()
-
getModuleName
public String getModuleName()
-
getShardName
public String getShardName()
-
getShardStrategyName
public String getShardStrategyName()
-
getShardMemberNames
public Collection<MemberName> getShardMemberNames()
-
-