Package com.dianping.cat.home.bug.entity

Examples of com.dianping.cat.home.bug.entity.ExceptionItem


          items = statis.getBugs();
        } else {
          items = statis.getExceptions();
        }

        ExceptionItem item = items.get(exception);

        if (item == null) {
          item = new ExceptionItem(exception);
          item.setCount(count);
          item.getMessages().addAll(exceptionItem.getMessages());
          items.put(exception, item);
        } else {
          List<String> messages = item.getMessages();
          item.setCount(item.getCount() + count);
          messages.addAll(exceptionItem.getMessages());

          if (messages.size() > 10) {
            messages = messages.subList(0, 10);
          }
View Full Code Here


  @Override
  public void visitDuration(Duration duration) {
    int count = duration.getCount();
    Domain domainInfo = m_report.findOrCreateDomain(m_currentDomain);
    ExceptionItem target = domainInfo.findOrCreateExceptionItem(m_exception);
    List<String> oldMessages = target.getMessages();
    List<String> newMessages = duration.getMessages();

    target.setCount(target.getCount() + count);
    mergeList(oldMessages, newMessages, SIZE);
  }
View Full Code Here

TOP

Related Classes of com.dianping.cat.home.bug.entity.ExceptionItem

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.