load(this.root, fileCountMap, fileSizeMap);
// now save all of the metrics back
// file count
for (String extension : fileCountMap.keySet()) {
Metric metric = factory.createMetric();
// e.g. file.java.count.org.openiaml.model
metric.setName("fileCount." + extension + "." + plugin);
metric.setValue(fileCountMap.get(extension).toString());
root.getMetrics().add(metric);
}
// file size
for (String extension : fileSizeMap.keySet()) {
Metric metric = factory.createMetric();
// e.g. file.java.size.org.openiaml.model
metric.setName("fileSize." + extension + "." + plugin);
metric.setValue(fileSizeMap.get(extension).toString());
root.getMetrics().add(metric);
}
}