Class ConfigData
java.lang.Object
io.nosqlbench.nb.api.config.standard.ConfigData
-
Constructor Summary
ConstructorsConstructorDescriptionConfigData(LinkedHashMap<String, Object> configs) ConfigData(LinkedHashMap<String, Object> configs, ConfigData inner) -
Method Summary
-
Constructor Details
-
ConfigData
-
ConfigData
-
ConfigData
public ConfigData()
-
-
Method Details
-
layer
-
layer
-
get
Get the typed optional value for the requested parameter name.- Type Parameters:
T- The generic parameter of the class type- Parameters:
name- The name of the parameter to usetype- The class type which the value must be assignable to.- Returns:
- An optional of type T
- Throws:
BasicError- if a value is found which can't be returned as the specified type.
-
getList
Get the typed optional list for the requested list name. This is no different than getting an object without the list qualifier, except that the type checking is done for you internal to the getList method.- Type Parameters:
T- The generic parameter of the list element type- Parameters:
name- The name of the parameter to returntype- The type of the list element. Every element must be assignable to this type.- Returns:
- An optional list of T
- Throws:
BasicError- if any of the elements are not assignable to the required element type
-
put
-