public class MovingAverageStatistics extends Object
| Constructor and Description | 
|---|
| MovingAverageStatistics(int period) | 
| Modifier and Type | Method and Description | 
|---|---|
| void | addStatistics(String key,
             double value)statistics values are aggregated per-key. | 
| void | clear()clear all values mapped | 
| void | clear(String key) | 
| double | getAverage(String key) | 
| double | getAverageAndReset(String key)get the average and reset the moving-average time-window to return a only after all samples
 are available again. | 
| String | toString() | 
| String | toString(String key) | 
public MovingAverageStatistics(int period)
period - number of samples in measurement periodpublic void addStatistics(String key, double value)
public double getAverageAndReset(String key)
public double getAverage(String key)
public void clear(String key)
key - values under this key will be removedpublic void clear()
Copyright © GigaSpaces.