assertEquals(95, stat.getValues().get(sincStart).getValue());
}
public void testBucketing() throws Exception {
StatisticsCollector collector = new StatisticsCollector();
TimeWindow window = new TimeWindow("test", 33, 11);
// We'll collect 3 buckets before we start removing: 33 / 11 = 3
// We'll do 2 updates per bucket (5 is default period): 11 / 5 = 2
TimeWindow[] windows = {window};
Stat stat1 = collector.createStat("TaskTracker A", windows);