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 SummaryNested Classes Modifier and Type Class Description static classPercentiles.BucketSizing- 
Nested classes/interfaces inherited from class org.apache.kafka.common.metrics.stats.SampledStatSampledStat.Sample
 - 
Nested classes/interfaces inherited from interface org.apache.kafka.common.metrics.CompoundStatCompoundStat.NamedMeasurable
 
- 
 - 
Field Summary- 
Fields inherited from class org.apache.kafka.common.metrics.stats.SampledStatsamples
 
- 
 - 
Constructor SummaryConstructors 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 SummaryAll Methods Instance Methods Concrete Methods Modifier and Type Method Description doublecombine(List<SampledStat.Sample> samples, MetricConfig config, long now)protected org.apache.kafka.common.metrics.stats.Percentiles.HistogramSamplenewSample(long timeMs)List<CompoundStat.NamedMeasurable>stats()protected voidupdate(SampledStat.Sample sample, MetricConfig config, double value, long timeMs)doublevalue(MetricConfig config, long now, double quantile)- 
Methods inherited from class org.apache.kafka.common.metrics.stats.SampledStatcurrent, measure, oldest, purgeObsoleteSamples, record
 
- 
 
- 
- 
- 
Constructor Detail- 
Percentilespublic Percentiles(int sizeInBytes, double max, Percentiles.BucketSizing bucketing, Percentile... percentiles)
 - 
Percentilespublic Percentiles(int sizeInBytes, double min, double max, Percentiles.BucketSizing bucketing, Percentile... percentiles)
 
- 
 - 
Method Detail- 
statspublic List<CompoundStat.NamedMeasurable> stats() - Specified by:
- statsin interface- CompoundStat
 
 - 
valuepublic double value(MetricConfig config, long now, double quantile) 
 - 
combinepublic double combine(List<SampledStat.Sample> samples, MetricConfig config, long now) - Specified by:
- combinein class- SampledStat
 
 - 
newSampleprotected org.apache.kafka.common.metrics.stats.Percentiles.HistogramSample newSample(long timeMs) - Overrides:
- newSamplein class- SampledStat
 
 - 
updateprotected void update(SampledStat.Sample sample, MetricConfig config, double value, long timeMs) - Specified by:
- updatein class- SampledStat
 
 
- 
 
-