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 class
Percentiles.BucketSizing
Nested classes/interfaces inherited from class org.apache.kafka.common.metrics.stats.SampledStat
SampledStat.Sample
Nested classes/interfaces inherited from interface org.apache.kafka.common.metrics.CompoundStat
CompoundStat.NamedMeasurable
-
Field Summary
Fields inherited from class org.apache.kafka.common.metrics.stats.SampledStat
samples
-
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
Modifier and Type Method Description double
combine(List<SampledStat.Sample> samples, MetricConfig config, long now)
protected org.apache.kafka.common.metrics.stats.Percentiles.HistogramSample
newSample(long timeMs)
List<CompoundStat.NamedMeasurable>
stats()
protected void
update(SampledStat.Sample sample, MetricConfig config, double value, long timeMs)
double
value(MetricConfig config, long now, double quantile)
Methods inherited from class org.apache.kafka.common.metrics.stats.SampledStat
current, measure, oldest, purgeObsoleteSamples, record, toString
-
Constructor Details
-
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 Details
-
stats
- Specified by:
stats
in interfaceCompoundStat
-
value
-
combine
- Specified by:
combine
in classSampledStat
-
newSample
protected org.apache.kafka.common.metrics.stats.Percentiles.HistogramSample newSample(long timeMs)- Overrides:
newSample
in classSampledStat
-
update
- Specified by:
update
in classSampledStat
-