Class DiagOpDispenser
java.lang.Object
io.nosqlbench.nb.api.components.core.NBBaseComponentMetrics
io.nosqlbench.nb.api.components.core.NBBaseComponent
io.nosqlbench.adapters.api.activityimpl.BaseOpDispenser<DiagOp,DiagSpace>
io.nosqlbench.adapter.diag.DiagOpDispenser
- All Implemented Interfaces:
OpDispenser<DiagOp>,OpResultTracker,NBComponent,NBComponentAdvisors,NBComponentEvents,NBComponentMetrics,NBComponentProps,NBComponentServices,NBComponentTimeline,NBProviderSearch,NBTokenWords,NBCanReconfigure,NBReconfigModelProvider,NBReconfigurable,NBLabeledElement,AutoCloseable,LongFunction<DiagOp>
-
Nested Class Summary
Nested classes/interfaces inherited from interface io.nosqlbench.nb.api.labels.NBLabeledElement
NBLabeledElement.BasicLabeledElement -
Field Summary
Fields inherited from class io.nosqlbench.adapters.api.activityimpl.BaseOpDispenser
EXPECTED_RESULT, START_TIMERS, STOP_TIMERS, VERIFIER, VERIFIER_IMPORTS, VERIFIER_INIT, verifierTimerFields inherited from class io.nosqlbench.nb.api.components.core.NBBaseComponent
bufferOrphanedMetrics, closed_ns, error, errored_ns, metricsBuffer, parent, started_epoch_ms, started_ns, state, teardown_nsFields inherited from interface io.nosqlbench.nb.api.components.core.NBComponent
EMPTY_COMPONENTFields inherited from interface io.nosqlbench.nb.api.components.core.NBComponentProps
HDRDIGITS, SUMMARYFields inherited from interface io.nosqlbench.nb.api.labels.NBLabeledElement
EMPTY -
Constructor Summary
ConstructorsConstructorDescriptionDiagOpDispenser(DiagDriverAdapter adapter, LongFunction<DiagSpace> spaceF, ParsedOp op) -
Method Summary
Modifier and TypeMethodDescriptionvoidapplyReconfig(NBConfiguration recfg) This applies a configuration to an element AFTER the initial configuration fromNBConfigurable.getOp(long cycle) This method should do all the work of creating an operation that is executable by some other caller.Implement this method by returning an instance ofConfigModel.Methods inherited from class io.nosqlbench.adapters.api.activityimpl.BaseOpDispenser
apply, getLabels, getOpName, getVerifier, onError, onStart, onSuccessMethods inherited from class io.nosqlbench.nb.api.components.core.NBBaseComponent
addAdvisor, addMetricsCloseable, attachChild, beforeDetach, close, create, detachChild, find, findParentService, getAdvisors, getChildren, getComponentOnlyLabels, getComponentProp, getComponentState, getNanosSinceStart, getParent, getTokens, nanosof_close, nanosof_error, nanosof_start, nanosof_teardown, onError, onEvent, reportExecutionMetric, setComponentProp, started_epoch_ms, teardown, toStringMethods inherited from class io.nosqlbench.nb.api.components.core.NBBaseComponentMetrics
addComponentMetric, addListener, findComponentMetrics, findComponentMetrics, getComponentMetric, getComponentMetrics, removeListenerMethods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, waitMethods inherited from interface io.nosqlbench.nb.api.components.core.NBComponentAdvisors
getAdvisorResultsMethods inherited from interface io.nosqlbench.nb.api.components.core.NBComponentMetrics
addComponentMetric, findComponentMetrics, findComponentMetrics, findOneComponentMetric, findOneComponentMetric, getComponentMetric, getComponentMetricsMethods inherited from interface io.nosqlbench.nb.api.labels.NBLabeledElement
description
-
Constructor Details
-
DiagOpDispenser
-
-
Method Details
-
applyReconfig
Description copied from interface:NBReconfigurableThis applies a configuration to an element AFTER the initial configuration fromNBConfigurable.- Specified by:
applyReconfigin interfaceNBCanReconfigure- Specified by:
applyReconfigin interfaceNBReconfigurable- Parameters:
recfg- The configuration data to be applied to a new instance
-
getReconfigModel
Description copied from interface:NBReconfigurableImplement this method by returning an instance ofConfigModel. Any configuration which is provided to theNBReconfigurable.applyReconfig(NBConfiguration)method will be validated through this model. A configuration model is required in order to build a validated configuration from source data provided by a user.- Specified by:
getReconfigModelin interfaceNBReconfigModelProvider- Specified by:
getReconfigModelin interfaceNBReconfigurable- Returns:
- A valid configuration model for the implementing class
-
getOp
Description copied from interface:OpDispenserThis method should do all the work of creating an operation that is executable by some other caller. The value produced by the apply method should not require additional processing if a caller wants to execute the operation multiple times, as for retries.- Specified by:
getOpin interfaceOpDispenser<DiagOp>- Parameters:
cycle- The cycle number which serves as the seed for any generated op fields to be bound into an operation.- Returns:
- an executable operation
-