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

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


  public void process(MessageTree tree) {
    String domain = tree.getDomain();
    ProblemReport report = m_reportManager.getHourlyReport(getStartTime(), domain, true);

    report.addIp(tree.getIpAddress());
    Machine machine = report.findOrCreateMachine(tree.getIpAddress());

    for (ProblemHandler handler : m_handlers) {
      handler.handle(machine, tree);
    }
  }
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

    m_model = model;
    m_minutes = model.getLastMinute();
  }

  public GroupLevelInfo display(ProblemReport report) {
    Machine machine = report.getMachines().get(m_model.getIpAddress());
    if (machine == null) {
      return null;
    }
    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();
View Full Code Here

    m_model = model;
    m_minutes = model.getLastMinute();
  }

  public ThreadLevelInfo display(ProblemReport report) {
    Machine machine = report.getMachines().get(m_model.getIpAddress());
    if (machine == null) {
      return null;
    }

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

TOP

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

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.