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