public interface CountersAndGauges
extends org.apache.hadoop.fs.statistics.DurationTrackerFactory
| Modifier and Type | Method and Description |
|---|---|
void |
addValueToQuantiles(Statistic op,
long value)
Add a value to a quantiles statistic.
|
void |
decrementGauge(Statistic op,
long count)
Decrement a specific gauge.
|
void |
incrementCounter(Statistic op,
long count)
Increment a specific counter.
|
void |
incrementGauge(Statistic op,
long count)
Increment a specific gauge.
|
void |
recordDuration(Statistic op,
boolean success,
Duration duration)
Record a duration.
|
void incrementCounter(Statistic op, long count)
op - operationcount - increment valuevoid incrementGauge(Statistic op, long count)
op - operationcount - increment valueClassCastException - if the metric is of the wrong typevoid decrementGauge(Statistic op, long count)
op - operationcount - increment valueClassCastException - if the metric is of the wrong typevoid addValueToQuantiles(Statistic op, long value)
op - operation to look up.value - value to add.ClassCastException - if the metric is not a Quantiles.Copyright © 2008–2022 Apache Software Foundation. All rights reserved.