public class StatementsReportingExecutionListener extends AbstractMetricsReportingExecutionListener implements ExecutionListener
ExecutionListener that reports useful metrics about executed statements. It relies on
a delegate MetricsCollectingExecutionListener as its source of metrics.
When reporting statements, batch statements and read statements count for just one event.
BYTES_PER_KB, BYTES_PER_MB| Constructor and Description |
|---|
StatementsReportingExecutionListener()
Creates a default instance of
StatementsReportingExecutionListener. |
StatementsReportingExecutionListener(MetricsCollectingExecutionListener delegate)
Creates an instance of
StatementsReportingExecutionListener using the given delegate. |
| Modifier and Type | Method and Description |
|---|---|
static AbstractMetricsReportingExecutionListenerBuilder<StatementsReportingExecutionListener> |
builder()
Creates a new builder for this class.
|
void |
report(SortedMap<String,com.codahale.metrics.Gauge> gauges,
SortedMap<String,com.codahale.metrics.Counter> counters,
SortedMap<String,com.codahale.metrics.Histogram> histograms,
SortedMap<String,com.codahale.metrics.Meter> meters,
SortedMap<String,com.codahale.metrics.Timer> timers) |
onExecutionFailed, onExecutionStarted, onExecutionSuccessful, onReadRequestFailed, onReadRequestStarted, onReadRequestSuccessful, onRowReceived, onWriteRequestFailed, onWriteRequestStarted, onWriteRequestSuccessfulclose, convertDuration, convertRate, getDisabledMetricAttributes, getDurationUnit, getRateUnit, isShutdownExecutorOnStop, report, start, start, stopclone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitonExecutionFailed, onExecutionStarted, onExecutionSuccessful, onReadRequestFailed, onReadRequestStarted, onReadRequestSuccessful, onRowReceived, onWriteRequestFailed, onWriteRequestStarted, onWriteRequestSuccessfulpublic StatementsReportingExecutionListener()
StatementsReportingExecutionListener.
The instance will express rates in operations per second, and durations in milliseconds.
public StatementsReportingExecutionListener(MetricsCollectingExecutionListener delegate)
StatementsReportingExecutionListener using the given delegate.
The instance will express rates in operations per second, and durations in milliseconds.
delegate - the StatementsReportingExecutionListener to use as metrics source.public static AbstractMetricsReportingExecutionListenerBuilder<StatementsReportingExecutionListener> builder()
public void report(SortedMap<String,com.codahale.metrics.Gauge> gauges, SortedMap<String,com.codahale.metrics.Counter> counters, SortedMap<String,com.codahale.metrics.Histogram> histograms, SortedMap<String,com.codahale.metrics.Meter> meters, SortedMap<String,com.codahale.metrics.Timer> timers)
report in class com.codahale.metrics.ScheduledReporterCopyright © 2017–2021 DataStax. All rights reserved.