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

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


  @Override
  public void visitMatrixReport(MatrixReport matrixReport) {
    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) {
View Full Code Here


          Service service = sql.findOrCreateService(key);
          updateService(service, logview, max);
        }
      }
    } else if ("Cache".equals(type)) {
      HeavyCache cache = m_report.getHeavyCache();
      String key = m_currentDomain + ":" + m_currentName;
      if (m_currentType.equals("URL")) {
        if (max > 100) {
          Url url = cache.findOrCreateUrl(key);
          updateUrl(url, logview, max);
        }
      } else {
        if (max > 100) {
          Service service = cache.findOrCreateService(key);
          updateService(service, logview, max);
        }
      }
    }
  }
View Full Code Here

      Collections.sort(sqlServices, new ServiceComparator());
      model.setSqlUrls(sqlUrls);
      model.setSqlServices(sqlServices);
    }

    HeavyCache heavyCache = heavyReport.getHeavyCache();
    if (heavyCache != null) {
      List<Url> cacheUrls = new ArrayList<Url>(heavyCache.getUrls().values());
      List<Service> cacheServices = new ArrayList<Service>(heavyCache.getServices().values());
      Collections.sort(cacheUrls, new UrlComparator());
      Collections.sort(cacheServices, new ServiceComparator());
      model.setCacheUrls(cacheUrls);
      model.setCacheServices(cacheServices);
    }
View Full Code Here

TOP

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

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.