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,MetricValueProvider<Double>,Stat
public class Percentiles extends SampledStat implements CompoundStat
A compound stat that reports one or more percentiles 
- 
- 
Nested Class Summary
Nested Classes Modifier and Type Class Description static classPercentiles.BucketSizing- 
Nested classes/interfaces inherited from interface org.apache.kafka.common.metrics.CompoundStat
CompoundStat.NamedMeasurable 
 - 
 
- 
Constructor Summary
Constructors Constructor Description Percentiles(int sizeInBytes, double min, double max, Percentiles.BucketSizing bucketing, Percentile... percentiles)Percentiles(int sizeInBytes, double max, Percentiles.BucketSizing bucketing, Percentile... percentiles) 
- 
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description doublecombine(List<org.apache.kafka.common.metrics.stats.SampledStat.Sample> samples, MetricConfig config, long now)List<CompoundStat.NamedMeasurable>stats()doublevalue(MetricConfig config, long now, double quantile)- 
Methods inherited from class org.apache.kafka.common.metrics.stats.SampledStat
current, measure, oldest, record, toString 
 - 
 
 - 
 
- 
- 
Constructor Detail
- 
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) 
 - 
 
- 
Method Detail
- 
stats
public List<CompoundStat.NamedMeasurable> stats()
- Specified by:
 statsin interfaceCompoundStat
 
- 
value
public double value(MetricConfig config, long now, double quantile)
 
- 
combine
public double combine(List<org.apache.kafka.common.metrics.stats.SampledStat.Sample> samples, MetricConfig config, long now)
- Specified by:
 combinein classSampledStat
 
 - 
 
 -