DurationTrackerFactory, IOStatistics, IOStatisticsAggregator, IOStatisticsSettersForwardingIOStatisticsStorepublic interface IOStatisticsStore extends IOStatistics, IOStatisticsSetters, IOStatisticsAggregator, DurationTrackerFactory
MAX_UNSET_VALUE, MIN_UNSET_VALUE| Modifier and Type | Method | Description |
|---|---|---|
void |
addMaximumSample(java.lang.String key,
long value) |
Add a maximum sample: if greater than the current value,
updates the value.
|
void |
addMeanStatisticSample(java.lang.String key,
long value) |
Add a sample to the mean statistics.
|
void |
addMinimumSample(java.lang.String key,
long value) |
Add a minimum sample: if less than the current value,
updates the value.
|
default void |
addSample(java.lang.String key,
long count) |
Add a statistics sample as a min, max and mean and count.
|
void |
addTimedOperation(java.lang.String prefix,
long durationMillis) |
Add a duration to the min/mean/max statistics, using the
given prefix and adding a suffix for each specific value.
|
void |
addTimedOperation(java.lang.String prefix,
java.time.Duration duration) |
Add a duration to the min/mean/max statistics, using the
given prefix and adding a suffix for each specific value.;
increment tha counter whose name == prefix.
|
java.util.concurrent.atomic.AtomicLong |
getCounterReference(java.lang.String key) |
Get a reference to the atomic instance providing the
value for a specific counter.
|
java.util.concurrent.atomic.AtomicLong |
getGaugeReference(java.lang.String key) |
Get a reference to the atomic instance providing the
value for a specific gauge.
|
java.util.concurrent.atomic.AtomicLong |
getMaximumReference(java.lang.String key) |
Get a reference to the atomic instance providing the
value for a specific maximum.
|
MeanStatistic |
getMeanStatistic(java.lang.String key) |
Get a reference to the atomic instance providing the
value for a specific meanStatistic.
|
java.util.concurrent.atomic.AtomicLong |
getMinimumReference(java.lang.String key) |
Get a reference to the atomic instance providing the
value for a specific minimum.
|
default long |
incrementCounter(java.lang.String key) |
Increment a counter by one.
|
long |
incrementCounter(java.lang.String key,
long value) |
Increment a counter.
|
long |
incrementGauge(java.lang.String key,
long value) |
Increment a gauge.
|
long |
incrementMaximum(java.lang.String key,
long value) |
Increment a maximum.
|
long |
incrementMinimum(java.lang.String key,
long value) |
Increment a minimum.
|
void |
reset() |
Reset all statistics.
|
trackDuration, trackDurationcounters, gauges, maximums, meanStatistics, minimumsaggregatesetCounter, setGauge, setMaximum, setMeanStatistic, setMinimumdefault long incrementCounter(java.lang.String key)
key - statistics keylong incrementCounter(java.lang.String key,
long value)
key - statistics keyvalue - value to incrementlong incrementGauge(java.lang.String key,
long value)
No-op if the gauge is unknown.
key - statistics keyvalue - value to incrementlong incrementMaximum(java.lang.String key,
long value)
No-op if the maximum is unknown.
key - statistics keyvalue - value to incrementlong incrementMinimum(java.lang.String key,
long value)
No-op if the minimum is unknown.
key - statistics keyvalue - value to incrementvoid addMinimumSample(java.lang.String key,
long value)
No-op if the minimum is unknown.
key - statistics keyvalue - sample valuevoid addMaximumSample(java.lang.String key,
long value)
No-op if the key is unknown.
key - statistics keyvalue - sample valuevoid addMeanStatisticSample(java.lang.String key,
long value)
No-op if the key is unknown.
key - keyvalue - sample value.void reset()
java.util.concurrent.atomic.AtomicLong getCounterReference(java.lang.String key)
key - statistic namejava.lang.NullPointerException - if there is no entry of that namejava.util.concurrent.atomic.AtomicLong getMaximumReference(java.lang.String key)
key - statistic namejava.lang.NullPointerException - if there is no entry of that namejava.util.concurrent.atomic.AtomicLong getMinimumReference(java.lang.String key)
key - statistic namejava.lang.NullPointerException - if there is no entry of that namejava.util.concurrent.atomic.AtomicLong getGaugeReference(java.lang.String key)
key - statistic namejava.lang.NullPointerException - if there is no entry of that nameMeanStatistic getMeanStatistic(java.lang.String key)
key - statistic namejava.lang.NullPointerException - if there is no entry of that namevoid addTimedOperation(java.lang.String prefix,
long durationMillis)
prefix - statistic prefixdurationMillis - duration in milliseconds.void addTimedOperation(java.lang.String prefix,
java.time.Duration duration)
prefix - statistic prefixduration - durationdefault void addSample(java.lang.String key,
long count)
key - key to add.count - count.Copyright © 2008–2025 Apache Software Foundation. All rights reserved.