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

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


        for (Entry<String, JavaThread> problemEntry : threads.entrySet()) {
          JavaThread thread = problemEntry.getValue();

          for (Entry<Integer, Segment> segmentEntry : thread.getSegments().entrySet()) {
            Segment segment = segmentEntry.getValue();
            int minute = segment.getId();
            int count = segment.getMessages().size();
            String summaryKey = type;

            GraphLine summaryLine = summaryCache.get(summaryKey);
            if (summaryLine == null) {
              summaryLine = new GraphLine();
View Full Code Here


    }
    if (thread.getName() == null) {
      thread.setName(tree.getThreadName());
    }

    Segment segment = thread.findOrCreateSegment(getSegmentByMessage(tree));
    List<String> segmentMessages = segment.getMessages();

    segment.incCount();
    if (segmentMessages.size() < MAX_LOG_SIZE) {
      segmentMessages.add(tree.getMessageId());
    }
  }
View Full Code Here

    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

        Map<String, JavaThread> threads = entry.getThreads();
        for (JavaThread thread : threads.values()) {
          String threadId = thread.getId();
          String groupName = thread.getGroupName();
          if (isContents(groupName, threadId)) {
            Segment segment = thread.getSegments().get(m_minute);
            if (segment != null) {
              statisticsSegment(segment, entry.getType(), entry.getStatus());
            }
          }
        }
View Full Code Here

TOP

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

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.