Interface DiagTask
- All Superinterfaces:
BiFunction<Long,,Map<String, Object>, Map<String, Object>> NBCanConfigure,NBConfigModelProvider,NBConfigurable,NBLabeledElement,NBParentComponentInjection
- All Known Implementing Classes:
BaseDiagTask,DiagTask_diagrate,DiagTask_erroroncycle,DiagTask_gauge,DiagTask_initdelay,DiagTask_log,DiagTask_noop
public interface DiagTask
extends BiFunction<Long,Map<String,Object>,Map<String,Object>>, NBConfigurable, NBLabeledElement, NBParentComponentInjection
The base type for building Diagnostic Op tasks, which are composed into
a diagnostic operation in order. This allows for a very flexible compositional
structure which can be extended as needed. The diag driver is meant to
be the core driver for the purposes of validating the NoSQLBench engine
and associated libraries and extensions.
The tasks are retained as shared across threads by default. This means that if
you want to have per-thread logic or to do things which are not thread-safe,
you need to use ThreadLocal or some other pattern to do so.
Tasks must provide a no-args constructor (or no constructor, which does the same).
Tasks must specify their configuration requirements via the
NBConfigurable
interface.
Tasks may be evented for updates from the activity params at runtime by implementing
the NBReconfigurable interface.-
Nested Class Summary
Nested classes/interfaces inherited from interface io.nosqlbench.nb.api.labels.NBLabeledElement
NBLabeledElement.BasicLabeledElement -
Field Summary
Fields inherited from interface io.nosqlbench.nb.api.labels.NBLabeledElement
EMPTY -
Method Summary
Methods inherited from interface java.util.function.BiFunction
andThenMethods inherited from interface io.nosqlbench.nb.api.config.standard.NBConfigurable
applyConfig, getConfigModelMethods inherited from interface io.nosqlbench.nb.api.labels.NBLabeledElement
description, getLabelsMethods inherited from interface io.nosqlbench.nb.api.components.core.NBParentComponentInjection
applyParentComponent
-
Method Details
-
apply
-
setName
-
setLabelsFrom
-
getParentLabels
NBLabeledElement getParentLabels()
-