Interface NBConfigModel
- All Known Implementing Classes:
ConfigModel
public interface NBConfigModel
This configuration model describes what is valid to submit for configuration for a given configurable object. Once this is provided by a configurable element, it is used internally by NoSQLBench to ensure that only valid configuration are given to newly built objects.
It is conventional to put the config model at the bottom of any implementing class for quick reference.
-
Method Summary
Modifier and TypeMethodDescriptionadd(NBConfigModel otherModel) voidassertNoConflicts(Map<String, ?> config, String type) voidassertValidConfig(Map<String, ?> config) Extract the fields from the shared config into a separate config, removing those that are defined in this model and leaving extraneous config fields in the provided model.extractConfig(Map<String, ?> sharedConfig) Extract the fields from the shared config into a separate config, removing those that are defined in this model and leaving extraneous config fields in the provided model.Class<?> getOf()<V> Param<V> voidlog()matchConfig(Map<String, ?> sharedConfig)
-
Method Details
-
getNamedParams
-
getParams
-
getOf
Class<?> getOf() -
assertValidConfig
-
assertNoConflicts
-
apply
-
getParam
-
extractConfig
Extract the fields from the shared config into a separate config, removing those that are defined in this model and leaving extraneous config fields in the provided model. This method mutates the map that is provided.- Parameters:
sharedConfig- A config map which can provide fields to multiple models- Returns:
- A new configuration for the extracted fields only.
-
extractConfig
Extract the fields from the shared config into a separate config, removing those that are defined in this model and leaving extraneous config fields in the provided model. This method mutates the map that is provided.- Parameters:
cfg- A config map which can provide fields to multiple models- Returns:
- A new configuration for the extracted fields only.
-
matchConfig
-
matchConfig
-
add
-
log
void log()
-