public interface Configuration
Modifier and Type | Method and Description |
---|---|
void |
addMemberReplicaForShard(String shardName,
MemberName memberName)
Adds the given member as the new replica for the given shardName.
|
void |
addModuleShardConfiguration(@NonNull ModuleShardConfiguration config)
Adds a new configuration for a module and shard.
|
void |
addPrefixShardConfiguration(@NonNull PrefixShardConfiguration config)
Adds a new configuration for a shard based on prefix.
|
Map<org.opendaylight.mdsal.dom.api.DOMDataTreeIdentifier,PrefixShardConfiguration> |
getAllPrefixShardConfigurations()
Returns the configuration for all configured prefix shards.
|
Set<String> |
getAllShardNames()
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 String |
getModuleNameFromNameSpace(@NonNull String nameSpace)
Returns the module name for the given namespace name or null if not found.
|
@Nullable String |
getShardNameForModule(@NonNull String moduleName)
Returns the first shard name corresponding to the given module name or null if none is configured.
|
@Nullable String |
getShardNameForPrefix(@NonNull org.opendaylight.mdsal.dom.api.DOMDataTreeIdentifier prefix)
Return the shard name corresponding to the prefix, or null if none is configured.
|
@Nullable ShardStrategy |
getStrategyForModule(@NonNull String moduleName)
Returns the ShardStrategy for the given module name or null if the module is not found.
|
@Nullable ShardStrategy |
getStrategyForPrefix(@NonNull org.opendaylight.mdsal.dom.api.DOMDataTreeIdentifier prefix)
Returns the ShardStrategy for the given prefix or null if the prefix is not found.
|
Collection<MemberName> |
getUniqueMemberNamesForAllShards()
Returns a unique set of all member names configured for all shards.
|
boolean |
isShardConfigured(String shardName) |
void |
removeMemberReplicaForShard(String shardName,
MemberName memberName)
Removes the given member as a replica for the given shardName.
|
void |
removePrefixShardConfiguration(@NonNull org.opendaylight.mdsal.dom.api.DOMDataTreeIdentifier prefix)
Removes a shard configuration for the specified prefix.
|
@NonNull Collection<String> getMemberShardNames(@NonNull MemberName memberName)
@Nullable String getModuleNameFromNameSpace(@NonNull String nameSpace)
@Nullable String getShardNameForModule(@NonNull String moduleName)
@Nullable String getShardNameForPrefix(@NonNull org.opendaylight.mdsal.dom.api.DOMDataTreeIdentifier prefix)
@NonNull Collection<MemberName> getMembersFromShardName(@NonNull String shardName)
@Nullable ShardStrategy getStrategyForModule(@NonNull String moduleName)
void addModuleShardConfiguration(@NonNull ModuleShardConfiguration config)
void addPrefixShardConfiguration(@NonNull PrefixShardConfiguration config)
void removePrefixShardConfiguration(@NonNull org.opendaylight.mdsal.dom.api.DOMDataTreeIdentifier prefix)
Map<org.opendaylight.mdsal.dom.api.DOMDataTreeIdentifier,PrefixShardConfiguration> getAllPrefixShardConfigurations()
Collection<MemberName> getUniqueMemberNamesForAllShards()
boolean isShardConfigured(String shardName)
void addMemberReplicaForShard(String shardName, MemberName memberName)
void removeMemberReplicaForShard(String shardName, MemberName memberName)
@Nullable ShardStrategy getStrategyForPrefix(@NonNull org.opendaylight.mdsal.dom.api.DOMDataTreeIdentifier prefix)
Copyright © 2019 OpenDaylight. All rights reserved.