}
for (String path : args) {
FlowSourceSet sourceSet = FlowTools.getSourceFromDir(new File(path), true);
FlowSourceSetHandler fsHandler = new ConcurrentFlowSourceSetHandler(sourceSet, statsRules);
cal.setTime(sourceSet.getFirstFlowTime());
cal.set(Calendar.DAY_OF_MONTH, 1);
cal.set(Calendar.HOUR_OF_DAY, 0);
cal.set(Calendar.MINUTE, 0);
cal.set(Calendar.SECOND, 0);
cal.set(Calendar.MILLISECOND, 0);
try {
fsHandler.process(cal, Calendar.MONTH, Calendar.DAY_OF_MONTH, 1);
} catch (FlowProcessingException ex) {
Logger.getLogger(FlowStats.class.getName()).log(Level.SEVERE, null, ex);
}
}
}