public void putReports(Map<String, ThriftFlumeReport> reports) throws TException {
Preconditions.checkNotNull(reports,
"putReports called with null report map");
Map<String, ReportEvent> reportsMap = new HashMap<String, ReportEvent>();
for (final Entry<String, ThriftFlumeReport> r : reports.entrySet()) {
ReportEvent event = new ReportEvent(r.getValue().longMetrics, r
.getValue().stringMetrics, r.getValue().doubleMetrics);
reportsMap.put(r.getKey(), event);
}
delegate.putReports(reportsMap);
}