Class ConsoleReporter
java.lang.Object
io.nosqlbench.nb.api.components.core.NBBaseComponentMetrics
io.nosqlbench.nb.api.components.core.NBBaseComponent
io.nosqlbench.nb.api.components.core.UnstartedPeriodicTaskComponent
io.nosqlbench.nb.api.components.core.PeriodicTaskComponent
io.nosqlbench.nb.api.engine.metrics.reporters.ConsoleReporter
- All Implemented Interfaces:
NBComponent,NBComponentAdvisors,NBComponentEvents,NBComponentMetrics,NBComponentProps,NBComponentServices,NBComponentTimeline,NBProviderSearch,NBTokenWords,NBLabeledElement,AutoCloseable,Runnable
-
Nested Class Summary
Nested classes/interfaces inherited from class io.nosqlbench.nb.api.components.core.UnstartedPeriodicTaskComponent
UnstartedPeriodicTaskComponent.FirstReport, UnstartedPeriodicTaskComponent.LastReportNested classes/interfaces inherited from interface io.nosqlbench.nb.api.labels.NBLabeledElement
NBLabeledElement.BasicLabeledElement -
Field Summary
Fields inherited from class io.nosqlbench.nb.api.components.core.UnstartedPeriodicTaskComponent
intervalmillisFields 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
ConstructorsConstructorDescriptionConsoleReporter(NBComponent node, NBLabels extraLabels, long millis, boolean oneLastTime, PrintStream output, Set<com.codahale.metrics.MetricAttribute> disabledMetricAttributes) -
Method Summary
Modifier and TypeMethodDescriptionprotected doubleconvertDuration(double duration) protected doubleconvertRate(double rate) protected Stringprotected Stringvoidreport()voidreport(List<NBMetricGauge> gauges, List<NBMetricCounter> counters, List<NBMetricHistogram> histograms, List<NBMetricMeter> meters, List<NBMetricTimer> timers) voidreportCountsOnce(List<NBMetric> summaryMetrics) voidreportOnce(List<NBMetric> summaryMetrics) protected voidtask()This task should only do what is needed once each period.Methods inherited from class io.nosqlbench.nb.api.components.core.UnstartedPeriodicTaskComponent
run, start, teardownMethods 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, 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
-
ConsoleReporter
public ConsoleReporter(NBComponent node, NBLabels extraLabels, long millis, boolean oneLastTime, PrintStream output, Set<com.codahale.metrics.MetricAttribute> disabledMetricAttributes)
-
-
Method Details
-
task
protected void task()Description copied from class:UnstartedPeriodicTaskComponentThis task should only do what is needed once each period. If it throws any exceptions, then these exceptions will cause the period task to exit. Thus, if you need to allow failures in some cases while keeping the caller (scheduler) active, all errors should be caught and handled internally.- Specified by:
taskin classUnstartedPeriodicTaskComponent
-
report
public void report() -
report
public void report(List<NBMetricGauge> gauges, List<NBMetricCounter> counters, List<NBMetricHistogram> histograms, List<NBMetricMeter> meters, List<NBMetricTimer> timers) -
getRateUnit
-
convertRate
protected double convertRate(double rate) -
getDurationUnit
-
convertDuration
protected double convertDuration(double duration) -
reportOnce
-
reportCountsOnce
-