Class RCurvePlanner
java.lang.Object
io.nosqlbench.nb.api.components.core.NBBaseComponentMetrics
io.nosqlbench.nb.api.components.core.NBBaseComponent
io.nosqlbench.scenarios.simframe.planning.SimFramePlanner<RCurveConfig,RCurveFrameParams>
io.nosqlbench.scenarios.simframe.optimizers.planners.rcurve.RCurvePlanner
- All Implemented Interfaces:
NBComponent,NBComponentAdvisors,NBComponentEvents,NBComponentMetrics,NBComponentProps,NBComponentServices,NBComponentTimeline,NBProviderSearch,NBTokenWords,NBLabeledElement,HoldAndSample,AutoCloseable
public class RCurvePlanner
extends SimFramePlanner<RCurveConfig,RCurveFrameParams>
implements HoldAndSample
-
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(RCurveFrameParams params, Activity flywheel) getConfig(NBCommandParams params) voidholdAndSample(SimFrameCapture capture) This should block until it is ready to stop sampling.nextStep(JournalView<RCurveFrameParams> 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
-
RCurvePlanner
-
-
Method Details
-
getConfig
- Specified by:
getConfigin classSimFramePlanner<RCurveConfig,RCurveFrameParams>
-
initialStep
- Specified by:
initialStepin classSimFramePlanner<RCurveConfig,RCurveFrameParams>
-
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<RCurveConfig,RCurveFrameParams> - 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<RCurveConfig,RCurveFrameParams>
-
holdAndSample
Description copied from interface:HoldAndSampleThis should block until it is ready to stop sampling.- Specified by:
holdAndSamplein interfaceHoldAndSample- Parameters:
capture- The capture data for the current frame.
-