Package com.atlassian.bamboo.performance
Class StatsAccumulatorImpl
- java.lang.Object
-
- com.atlassian.bamboo.performance.StatsAccumulatorImpl
-
- All Implemented Interfaces:
StatsAccumulator
@NotThreadSafe public class StatsAccumulatorImpl extends Object implements StatsAccumulator
-
-
Field Summary
-
Fields inherited from interface com.atlassian.bamboo.utils.statistics.StatsAccumulator
COMPRESSION, PERCENTILES
-
-
Constructor Summary
Constructors Constructor Description StatsAccumulatorImpl()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description void
add(double value)
Register the next value.Stats
getStats()
Get a snapshot of statistics from values accumulated so far.
-
-
-
Method Detail
-
add
public void add(double value)
Description copied from interface:StatsAccumulator
Register the next value.- Specified by:
add
in interfaceStatsAccumulator
-
getStats
@Nullable public Stats getStats()
Description copied from interface:StatsAccumulator
Get a snapshot of statistics from values accumulated so far. Returns null if no statistics have been collected. Note that provided percentiles are only an estimation.- Specified by:
getStats
in interfaceStatsAccumulator
-
-