Exemple #1
0
  @Override
  public void visitEventReport(EventReport eventReport) {
    m_report = new EventReport(eventReport.getDomain());
    m_report.setStartTime(eventReport.getStartTime());
    m_report.setEndTime(eventReport.getEndTime());
    m_report.getDomainNames().addAll(eventReport.getDomainNames());
    m_report.getIps().addAll(eventReport.getIps());

    super.visitEventReport(eventReport);
  }
Exemple #2
0
  @Override
  public void visitType(EventType type) {
    m_currentType = type.getId();
    EventType temp = m_report.findOrCreateMachine(m_currentIp).findOrCreateType(m_currentType);

    m_merger.mergeType(temp, type);
    super.visitType(type);
  }
Exemple #3
0
  @Override
  public void visitName(EventName name) {
    m_currentName = name.getId();
    EventName temp =
        m_report
            .findOrCreateMachine(m_currentIp)
            .findOrCreateType(m_currentType)
            .findOrCreateName(m_currentName);

    m_merger.mergeName(temp, name);

    EventName all =
        m_report
            .findOrCreateMachine(m_currentIp)
            .findOrCreateType(m_currentType)
            .findOrCreateName(Constants.ALL);
    m_merger.mergeName(all, name);

    m_merger.mergeName(temp, name);
    super.visitName(name);
  }
Exemple #4
0
  @Override
  public void visitRange(Range range) {
    m_currentRange = range.getValue();
    Range temp =
        m_report
            .findOrCreateMachine(m_currentIp)
            .findOrCreateType(m_currentType)
            .findOrCreateName(m_currentName)
            .findOrCreateRange(m_currentRange);

    m_merger.mergeRange(temp, range);

    Range all =
        m_report
            .findOrCreateMachine(m_currentIp)
            .findOrCreateType(m_currentType)
            .findOrCreateName(Constants.ALL)
            .findOrCreateRange(m_currentRange);

    m_merger.mergeRange(all, range);
    super.visitRange(range);
  }
Exemple #5
0
 @Override
 public void visitMachine(Machine machine) {
   m_currentIp = machine.getIp();
   m_report.findOrCreateMachine(m_currentIp);
   super.visitMachine(machine);
 }
Exemple #6
0
 @Override
 public void visitMachine(Machine machine) {
   m_report.findOrCreateMachine(Constants.ALL);
   super.visitMachine(machine);
 }