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

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


        Map<String, JavaThread> threads = entry.getThreads();
        String type = entry.getType();
        String status = entry.getStatus();

        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;
View Full Code Here


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

    //make problem thread id = thread group name, make report small
    JavaThread thread = entry.findOrCreateThread(tree.getThreadGroupName());

    if (thread.getGroupName() == null) {
      thread.setGroupName(tree.getThreadGroupName());
    }
    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

  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

    List<Entry> entries = machine.getEntries();
    for (Entry temp : entries) {
      Map<String, JavaThread> threads = temp.getThreads();

      for (java.util.Map.Entry<String, JavaThread> entry : threads.entrySet()) {
        JavaThread thread = entry.getValue();

        String groupName = thread.getGroupName();
        GroupStatistics statistics = findOrCreatGroupStatistics(groupName, m_minutes);
        statistics.add(thread.getSegments(), temp.getType());
      }
    }
    long currentTimeMillis = System.currentTimeMillis();
    long currentHours = currentTimeMillis - currentTimeMillis % (60 * 60 * 1000);
    if (currentHours == m_model.getLongDate()) {
View Full Code Here

    List<Entry> entries = machine.getEntries();
    for (Entry temp : entries) {
      Map<String, JavaThread> threads = temp.getThreads();

      for (java.util.Map.Entry<String, JavaThread> entry : threads.entrySet()) {
        JavaThread thread = entry.getValue();
        String groupName = thread.getGroupName();
        String threadId = thread.getId();
        GroupStatistics statistics = findOrCreatGroupStatistics(groupName, m_minutes);

        if (groupName.equals(m_groupName)) {
          statistics.add(threadId, thread.getSegments(), m_minutes, temp.getType());
          findOrCreatThreadInfo(groupName, threadId);
        } else {
          statistics.add(groupName, thread.getSegments(), m_minutes, temp.getType());
          findOrCreatThreadInfo(groupName, groupName);
        }
      }
    }
    long currentTimeMillis = System.currentTimeMillis();
View Full Code Here

TOP

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

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.