Example #1
0
  @Override
  public void process(MessageTree tree) {
    String domain = tree.getDomain();
    ProblemReport report = m_reportManager.getHourlyReport(getStartTime(), domain, true);

    report.addIp(tree.getIpAddress());
    Machine machine = report.findOrCreateMachine(tree.getIpAddress());

    for (ProblemHandler handler : m_handlers) {
      handler.handle(machine, tree);
    }
  }
Example #2
0
 @Override
 public void visitMachine(Machine machine) {
   m_currentMachine = m_report.findOrCreateMachine(machine.getIp());
   super.visitMachine(machine);
 }