org.apache.kafka.common.metrics.stats
Class Percentiles
java.lang.Object
org.apache.kafka.common.metrics.stats.SampledStat
org.apache.kafka.common.metrics.stats.Percentiles
- All Implemented Interfaces:
- CompoundStat, Measurable, MeasurableStat, Stat
public class Percentiles
- extends SampledStat
- implements CompoundStat
A compound stat that reports one or more percentiles
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Methods inherited from interface org.apache.kafka.common.metrics.Stat |
record |
Percentiles
public Percentiles(int sizeInBytes,
double max,
Percentiles.BucketSizing bucketing,
Percentile... percentiles)
Percentiles
public Percentiles(int sizeInBytes,
double min,
double max,
Percentiles.BucketSizing bucketing,
Percentile... percentiles)
stats
public java.util.List<CompoundStat.NamedMeasurable> stats()
- Specified by:
stats
in interface CompoundStat
value
public double value(MetricConfig config,
long now,
double quantile)
combine
public double combine(java.util.List<SampledStat.Sample> samples,
MetricConfig config,
long now)
- Specified by:
combine
in class SampledStat
newSample
protected org.apache.kafka.common.metrics.stats.Percentiles.HistogramSample newSample(long timeMs)
- Overrides:
newSample
in class SampledStat
update
protected void update(SampledStat.Sample sample,
MetricConfig config,
double value,
long timeMs)
- Specified by:
update
in class SampledStat