Package cz.o2.proxima.core.metrics
Class ApproxPercentileMetric
- java.lang.Object
-
- cz.o2.proxima.core.metrics.Metric<Stats>
-
- cz.o2.proxima.core.metrics.ApproxPercentileMetric
-
- All Implemented Interfaces:
ApproxPercentileMetricMXBean
,java.io.Serializable
@Stable public class ApproxPercentileMetric extends Metric<Stats> implements ApproxPercentileMetricMXBean
An approximation of 1st, 10th, 30th, 50th, 70th, 90th and 99th percentile.- See Also:
- Serialized Form
-
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description Stats
getValue()
Retrieve current value of the metric.void
increment(double d)
Increment the metric by given double value.void
reset()
Reset the metric to initial state.
-
-
-
Method Detail
-
increment
public void increment(double d)
Description copied from class:Metric
Increment the metric by given double value.
-
getValue
public Stats getValue()
Description copied from class:Metric
Retrieve current value of the metric.- Specified by:
getValue
in interfaceApproxPercentileMetricMXBean
- Specified by:
getValue
in classMetric<Stats>
- Returns:
- current value
-
-