Package com.dianping.cat.home.heavy.entity

Examples of com.dianping.cat.home.heavy.entity.HeavyCall


    m_currentDomain = matrixReport.getDomain();
    if (m_report.getHeavyCache() == null) {
      m_report.setHeavyCache(new HeavyCache());
    }
    if (m_report.getHeavyCall() == null) {
      m_report.setHeavyCall(new HeavyCall());
    }
    if (m_report.getHeavySql() == null) {
      m_report.setHeavySql(new HeavySql());
    }
    super.visitMatrixReport(matrixReport);
View Full Code Here


    String type = ratio.getType();
    long max = ratio.getMax();
    String logview = ratio.getUrl();

    if ("Call".equals(type)) {
      HeavyCall call = m_report.getHeavyCall();
      String key = m_currentDomain + ":" + m_currentName;
      if (m_currentType.equals("URL")) {
        if (max > 10) {
          Url url = call.findOrCreateUrl(key);
          updateUrl(url, logview, max);
        }
      } else {
        if (max > 10) {
          Service service = call.findOrCreateService(key);
          updateService(service, logview, max);
        }
      }
    } else if ("SQL".equals(type)) {
      HeavySql sql = m_report.getHeavySql();
View Full Code Here

    }
    return domains;
  }

  private void buildSortedHeavyInfo(Model model, HeavyReport heavyReport) {
    HeavyCall heavyCall = heavyReport.getHeavyCall();
    if (heavyCall != null) {

      List<Url> callUrls = new ArrayList<Url>(heavyCall.getUrls().values());
      List<Service> callServices = new ArrayList<Service>(heavyCall.getServices().values());
      Collections.sort(callUrls, new UrlComparator());
      Collections.sort(callServices, new ServiceComparator());
      model.setCallUrls(callUrls);
      model.setCallServices(callServices);
    }
View Full Code Here

TOP

Related Classes of com.dianping.cat.home.heavy.entity.HeavyCall

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.