Interface Configuration
- All Known Implementing Classes:
 ConfigurationImpl
public interface Configuration
- 
Method Summary
Modifier and TypeMethodDescriptionvoidaddMemberReplicaForShard(String shardName, MemberName memberName) Adds the given member as the new replica for the given shardName.voidaddModuleShardConfiguration(@NonNull ModuleShardConfiguration config) Adds a new configuration for a module and shard.Returns all the configured shard names.@NonNull Collection<MemberName> getMembersFromShardName(@NonNull String shardName) Returns the member replicas for the given shard name.@NonNull Collection<String> getMemberShardNames(@NonNull MemberName memberName) Returns all the shard names that belong on the member by the given name.@Nullable StringgetModuleNameFromNameSpace(@NonNull String nameSpace) Returns the module name for the given namespace name or null if not found.@Nullable StringgetShardNameForModule(@NonNull String moduleName) Returns the first shard name corresponding to the given module name or null if none is configured.@Nullable ShardStrategygetStrategyForModule(@NonNull String moduleName) Returns the ShardStrategy for the given module name or null if the module is not found.Returns a unique set of all member names configured for all shards.booleanisShardConfigured(String shardName) voidremoveMemberReplicaForShard(String shardName, MemberName memberName) Removes the given member as a replica for the given shardName. 
- 
Method Details
- 
getMemberShardNames
Returns all the shard names that belong on the member by the given name. - 
getModuleNameFromNameSpace
Returns the module name for the given namespace name or null if not found. - 
getShardNameForModule
Returns the first shard name corresponding to the given module name or null if none is configured. - 
getMembersFromShardName
Returns the member replicas for the given shard name. - 
getStrategyForModule
Returns the ShardStrategy for the given module name or null if the module is not found. - 
getAllShardNames
Returns all the configured shard names. - 
addModuleShardConfiguration
Adds a new configuration for a module and shard. - 
getUniqueMemberNamesForAllShards
Collection<MemberName> getUniqueMemberNamesForAllShards()Returns a unique set of all member names configured for all shards. - 
isShardConfigured
 - 
addMemberReplicaForShard
Adds the given member as the new replica for the given shardName. - 
removeMemberReplicaForShard
Removes the given member as a replica for the given shardName. 
 -