Class NBBaseCommand
java.lang.Object
io.nosqlbench.nb.api.components.core.NBBaseComponentMetrics
io.nosqlbench.nb.api.components.core.NBBaseComponent
io.nosqlbench.engine.core.lifecycle.scenario.execution.NBInvokableCommand
io.nosqlbench.engine.core.lifecycle.scenario.execution.NBBaseCommand
- All Implemented Interfaces:
NBComponent,NBComponentAdvisors,NBComponentEvents,NBComponentMetrics,NBComponentProps,NBComponentServices,NBComponentTimeline,NBProviderSearch,NBTokenWords,NBLabeledElement,AutoCloseable,BiFunction<NBBufferedContainer,NBCommandParams, Object>
- Direct Known Subclasses:
CMD_await,CMD_error,CMD_example,CMD_findmax,CMD_forceStop,CMD_getenv,CMD_ok,CMD_optimize,CMD_optimo,CMD_reset,CMD_run,CMD_start,CMD_stop,CMD_wait,NB_diag,NBScriptedCommand
-
Nested Class Summary
Nested classes/interfaces inherited from interface io.nosqlbench.nb.api.labels.NBLabeledElement
NBLabeledElement.BasicLabeledElement -
Field Summary
FieldsFields inherited from class io.nosqlbench.nb.api.components.core.NBBaseComponent
bufferOrphanedMetrics, closed_ns, error, errored_ns, labels, 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
ConstructorsConstructorDescriptionNBBaseCommand(NBBufferedContainer parentComponent, String commandLabel) NBBaseCommand(NBBufferedContainer parentComponent, String stepName, String targetScenario) -
Method Summary
Modifier and TypeMethodDescriptionfinal Objectapply(NBBufferedContainer sctx, NBCommandParams params) abstract Objectinvoke(NBCommandParams params, PrintWriter stdout, PrintWriter stderr, Reader stdin, ContainerActivitiesController controller) toString()Methods inherited from class io.nosqlbench.engine.core.lifecycle.scenario.execution.NBInvokableCommand
invokeSafeMethods inherited from class io.nosqlbench.nb.api.components.core.NBBaseComponent
addAdvisor, addMetricsCloseable, attachChild, beforeDetach, close, create, detachChild, find, findParentService, getAdvisors, getChildren, getComponentOnlyLabels, getComponentProp, getComponentState, getLabels, getNanosSinceStart, getParent, getTokens, nanosof_close, nanosof_error, nanosof_start, nanosof_teardown, onError, onEvent, reportExecutionMetric, setComponentProp, started_epoch_ms, teardownMethods 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 java.util.function.BiFunction
andThenMethods 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
-
Field Details
-
logger
protected org.apache.logging.log4j.Logger logger
-
-
Constructor Details
-
NBBaseCommand
-
NBBaseCommand
-
-
Method Details
-
getScenarioName
-
getTargetScenario
-
apply
- Specified by:
applyin interfaceBiFunction<NBBufferedContainer,NBCommandParams, Object> - Specified by:
applyin classNBInvokableCommand
-
toString
- Overrides:
toStringin classNBBaseComponent
-
invoke
public abstract Object invoke(NBCommandParams params, PrintWriter stdout, PrintWriter stderr, Reader stdin, ContainerActivitiesController controller)
-