public class StatisticsPeek<E extends Enum<E>> extends Object
Statistics, used for statistics inspection.
Holds the:
- timestamp
- periodic average latency (periodic average latency for one observed domain)
- cumulative average latency (cumulative average latency for one observed domain)
- total periodic average latency (periodic average latency for all observed domains)
- total cumulative average latency (cumulative average latency for one observed domain)
- periodic counter (periodic nb of operations for one observed domain)
- cumulative counter (cumulative nb of operations for one observed domain)
- total periodic counter (periodic nb of operations for all observed domains)
- total cumulative counter (cumulative nb of operations for one observed domain)
- periodic TPS (periodic TPS for one observed domain)
- cumulative TPS (cumulative TPS for one observed domain)
- total periodic TPS (periodic TPS for all observed domains)
- total cumulative TPS (cumulative TPS for one observed domain)
- HdrHistogram : percentiles of measures latencies| Constructor and Description |
|---|
StatisticsPeek(String name,
Enum<E>[] keys,
long timestamp) |
public String getName()
public long getTimestamp()
public void setCumulativeValues(long length,
ConcurrentHashMap<Enum,LongAdder> cumulativeCounters,
ConcurrentHashMap<Enum,LongAdder> cumulativeTotalLatencies)
public void setPeriodicValues(long length,
ConcurrentHashMap<Enum,LongAdder> periodicCounters,
ConcurrentHashMap<Enum,LongAdder> periodicTotalLatencies)
public void addAll(Map<String,StatisticsPeek<E>> statisticsPeeks)
TODO : remove cumulative counter, since it is useless now
statisticsPeeks - snapshot of the statistics at reporting intervalpublic long getSumOfPeriodicCounters()
public double getAverageOfPeriodicAverageLatencies()
public long getSumOfPeriodicTps()
public long getSumOfCumulativeCounters()
public double getAverageOfCumulativeAverageLatencies()
public long getSumOfCumulativeTps()
Copyright © 2023. All rights reserved.