Esempio n. 1
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);
  }
Esempio n. 2
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);
  }
Esempio n. 3
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);
  }
Esempio n. 4
0
 @Override
 public void visitMachine(Machine machine) {
   m_currentIp = machine.getIp();
   m_report.findOrCreateMachine(m_currentIp);
   super.visitMachine(machine);
 }
Esempio n. 5
0
 @Override
 public void visitMachine(Machine machine) {
   m_report.findOrCreateMachine(Constants.ALL);
   super.visitMachine(machine);
 }