public List<DailyGraph> buildDailyGraph() {
return m_dailyGraphs;
}
private DailyGraph buildDailyGraph(ProblemReport problemReport, MachineInfo info) {
DailyGraph graph = new DailyGraph();
StringBuilder summary = new StringBuilder();
StringBuilder detail = new StringBuilder();
graph.setDomain(problemReport.getDomain());
graph.setPeriod(problemReport.getStartTime());
graph.setName(ProblemAnalyzer.ID);
graph.setIp(info.getIp());
graph.setType(3);
graph.setCreationDate(new Date());
for (java.util.Map.Entry<String, Integer> type : info.getTypesCount().entrySet()) {
summary.append(type.getKey() + '\t' + type.getValue() + '\n');
}
for (java.util.Map.Entry<String, Integer> name : info.getNameCount().entrySet()) {
detail.append(name.getKey() + '\t' + name.getValue() + '\n');
}
graph.setSummaryContent(summary.toString());
graph.setDetailContent(detail.toString());
return graph;
}