Class RatchetPlanner
java.lang.Object
io.nosqlbench.nb.api.components.core.NBBaseComponentMetrics
io.nosqlbench.nb.api.components.core.NBBaseComponent
io.nosqlbench.scenarios.simframe.planning.SimFramePlanner<RatchetConfig,RatchetFrameParams>
io.nosqlbench.scenarios.simframe.optimizers.planners.ratchet.RatchetPlanner
- All Implemented Interfaces:
NBComponent,NBComponentAdvisors,NBComponentEvents,NBComponentMetrics,NBComponentProps,NBComponentServices,NBComponentTimeline,NBProviderSearch,NBTokenWords,NBLabeledElement,AutoCloseable
-
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.scenarios.simframe.planning.SimFramePlanner
config, journal, loggerFields 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
Constructors -
Method Summary
Modifier and TypeMethodDescriptionvoidapplyParams(RatchetFrameParams params, Activity flywheel) getConfig(NBCommandParams params) nextStep(JournalView<RatchetFrameParams> journal) Using a stateful history of all control parameters and all results, decide if there is additional search space and return a set of parameters for the next workload simulation frame.Methods inherited from class io.nosqlbench.scenarios.simframe.planning.SimFramePlanner
analyze, initJournalMethods 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, 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
-
RatchetPlanner
-
-
Method Details
-
getConfig
- Specified by:
getConfigin classSimFramePlanner<RatchetConfig,RatchetFrameParams>
-
initialStep
- Specified by:
initialStepin classSimFramePlanner<RatchetConfig,RatchetFrameParams>
-
nextStep
Using a stateful history of all control parameters and all results, decide if there is additional search space and return a set of parameters for the next workload simulation frame. If the stopping condition has been met, return null- Specified by:
nextStepin classSimFramePlanner<RatchetConfig,RatchetFrameParams> - Parameters:
journal- All parameters and results, organized in enumerated simulation frames- Returns:
- Optionally, a set of paramValues which indicates another simulation frame should be sampled, else null
-
applyParams
- Specified by:
applyParamsin classSimFramePlanner<RatchetConfig,RatchetFrameParams>
-