Class ConfigModel
java.lang.Object
io.nosqlbench.nb.api.config.standard.ConfigModel
- All Implemented Interfaces:
NBConfigModel
-
Method Summary
Modifier and TypeMethodDescriptionadd(NBConfigModel otherModel) <T> ConfigModelAdd a param that, when present in a runtime configuration, will cause the config model to be expanded dynamically.voidassertNoConflicts(Map<String, ?> config, String type) voidassertValidConfig(Map<String, ?> config) static <T> TconvertValueTo(String configName, String paramName, Object value, Class<T> type) 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()Param<?> voidlog()matchConfig(Map<String, ?> sharedConfig) static ConfigModelstatic ConfigModeltoString()
-
Method Details
-
of
-
of
-
add
-
asReadOnly
Add a param that, when present in a runtime configuration, will cause the config model to be expanded dynamically. This is for scenarios in which you have external configurable resources or templates which contain their own models that can only be known at runtime. -
getNamedParams
- Specified by:
getNamedParamsin interfaceNBConfigModel
-
getParams
- Specified by:
getParamsin interfaceNBConfigModel
-
getOf
- Specified by:
getOfin interfaceNBConfigModel
-
convertValueTo
-
extractConfig
Description copied from interface:NBConfigModelExtract 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.- Specified by:
extractConfigin interfaceNBConfigModel- Parameters:
sharedConfig- A config map which can provide fields to multiple models- Returns:
- A new configuration for the extracted fields only.
-
matchConfig
- Specified by:
matchConfigin interfaceNBConfigModel
-
extractConfig
Description copied from interface:NBConfigModelExtract 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.- Specified by:
extractConfigin interfaceNBConfigModel- Parameters:
cfg- A config map which can provide fields to multiple models- Returns:
- A new configuration for the extracted fields only.
-
matchConfig
- Specified by:
matchConfigin interfaceNBConfigModel
-
apply
- Specified by:
applyin interfaceNBConfigModel
-
assertNoConflicts
- Specified by:
assertNoConflictsin interfaceNBConfigModel
-
assertValidConfig
- Specified by:
assertValidConfigin interfaceNBConfigModel
-
getParam
- Specified by:
getParamin interfaceNBConfigModel
-
validIfRegex
-
add
- Specified by:
addin interfaceNBConfigModel
-
log
public void log()- Specified by:
login interfaceNBConfigModel
-
toString
-