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

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


  }

  protected void visitEntryChildren(Entry to, Entry from) {
    Stack<Object> objs = getObjects();
    for (Duration source : from.getDurations().values()) {
      Duration target = to.findDuration(source.getValue());

      if (target == null) {
        target = new Duration(source.getValue());
        to.addDuration(target);
      }

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


  }

  public abstract void handle(Machine machine, MessageTree tree);

  public void updateEntry(MessageTree tree, Entry entry, int value) {
    Duration duration = entry.findOrCreateDuration(value);
    List<String> messages = duration.getMessages();

    duration.incCount();
    if (messages.size() < MAX_LOG_SIZE) {
      messages.add(tree.getMessageId());
    }

    //make problem thread id = thread group name, make report small
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

TOP

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

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.