Package com.dianping.cat.consumer.problem.model.entity

Examples of com.dianping.cat.consumer.problem.model.entity.Entry


  @Override
  protected void visitMachineChildren(Machine to, Machine from) {
    Stack<Object> objs = getObjects();

    for (Entry source : from.getEntries()) {
      Entry target = findOrCreateEntry(to, source);

      objs.push(target);
      source.accept(this);
      objs.pop();
    }
View Full Code Here


    for (Entry entry : entries) {
      if (entry.getType().equals(type) && entry.getStatus().equals(status)) {
        return entry;
      }
    }
    Entry entry = new Entry();

    entry.setStatus(status);
    entry.setType(type);
    entries.add(entry);
    return entry;
  }
View Full Code Here

  @Override
  public void visitDuration(Duration duration) {
    int value = duration.getValue();
    Machine machine = m_report.findOrCreateMachine(m_currentDomain);
    Entry entry = findOrCreatEntry(machine, m_currentType, m_currentState);
    Duration temp = entry.findOrCreateDuration(value);

    temp.setCount(temp.getCount() + duration.getCount());
  }
View Full Code Here

  @Override
  public void visitSegment(Segment segment) {
    int minute = segment.getId();
    int count = segment.getCount();
    Machine machine = m_report.findOrCreateMachine(m_currentDomain);
    Entry entry = findOrCreatEntry(machine, m_currentType, m_currentState);
    JavaThread thread = entry.findOrCreateThread(m_currentThread);
    Segment temp = thread.findOrCreateSegment(minute);

    temp.setCount(temp.getCount() + count);
  }
View Full Code Here

TOP

Related Classes of com.dianping.cat.consumer.problem.model.entity.Entry

Copyright © 2018 www.massapicom. All rights reserved.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.