ArrayList seconds = filter.getSeconds();
for (int i = 0; i < seconds.size(); ++i) {
Statistic statistic = (Statistic) seconds.get(i);
// Get Calculator
Calculator calculator =
(Calculator) calculators.get(statistic.getName());
// Generate Reading
Reading reading =
generateReading(statistic, statistic.getSecond(), log);
if (reading == null)
continue;
if (calculator.isApplyImmediate()) {
Metric metric = new Metric(statistic.getName(), null, reading);
calculateStatistic(calculator, metric);
} else {
matchReading(statistic, calculator, reading);