Class ConfigurationImpl
java.lang.Object
org.opendaylight.controller.cluster.datastore.config.ConfigurationImpl
- All Implemented Interfaces:
Configuration
-
Constructor Summary
ConstructorsConstructorDescriptionConfigurationImpl(String moduleShardsConfigPath, String modulesConfigPath) ConfigurationImpl(ModuleShardConfigProvider provider) -
Method Summary
Modifier and TypeMethodDescriptionvoidaddMemberReplicaForShard(String shardName, MemberName newMemberName) Adds the given member as the new replica for the given shardName.voidAdds a new configuration for a module and shard.Returns all the configured shard names.getMembersFromShardName(String shardName) Returns the member replicas for the given shard name.getMemberShardNames(MemberName memberName) Returns all the shard names that belong on the member by the given name.getModuleNameFromNameSpace(String nameSpace) Returns the module name for the given namespace name or null if not found.getShardNameForModule(String moduleName) Returns the first shard name corresponding to the given module name or null if none is configured.getStrategyForModule(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 newMemberName) Removes the given member as a replica for the given shardName.
-
Constructor Details
-
ConfigurationImpl
-
ConfigurationImpl
-
-
Method Details
-
getMemberShardNames
Description copied from interface:ConfigurationReturns all the shard names that belong on the member by the given name.- Specified by:
getMemberShardNamesin interfaceConfiguration
-
getModuleNameFromNameSpace
Description copied from interface:ConfigurationReturns the module name for the given namespace name or null if not found.- Specified by:
getModuleNameFromNameSpacein interfaceConfiguration
-
getStrategyForModule
Description copied from interface:ConfigurationReturns the ShardStrategy for the given module name or null if the module is not found.- Specified by:
getStrategyForModulein interfaceConfiguration
-
getShardNameForModule
Description copied from interface:ConfigurationReturns the first shard name corresponding to the given module name or null if none is configured.- Specified by:
getShardNameForModulein interfaceConfiguration
-
getMembersFromShardName
Description copied from interface:ConfigurationReturns the member replicas for the given shard name.- Specified by:
getMembersFromShardNamein interfaceConfiguration
-
getAllShardNames
Description copied from interface:ConfigurationReturns all the configured shard names.- Specified by:
getAllShardNamesin interfaceConfiguration
-
getUniqueMemberNamesForAllShards
Description copied from interface:ConfigurationReturns a unique set of all member names configured for all shards.- Specified by:
getUniqueMemberNamesForAllShardsin interfaceConfiguration
-
addModuleShardConfiguration
Description copied from interface:ConfigurationAdds a new configuration for a module and shard.- Specified by:
addModuleShardConfigurationin interfaceConfiguration
-
isShardConfigured
- Specified by:
isShardConfiguredin interfaceConfiguration
-
addMemberReplicaForShard
Description copied from interface:ConfigurationAdds the given member as the new replica for the given shardName.- Specified by:
addMemberReplicaForShardin interfaceConfiguration
-
removeMemberReplicaForShard
Description copied from interface:ConfigurationRemoves the given member as a replica for the given shardName.- Specified by:
removeMemberReplicaForShardin interfaceConfiguration
-