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

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


    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();
      String key = m_currentDomain + ":" + m_currentName;
      if (m_currentType.equals("URL")) {
        if (max > 20) {
          Url url = sql.findOrCreateUrl(key);
          updateUrl(url, logview, max);
        }
      } else {
        if (max > 20) {
          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);
View Full Code Here

TOP

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

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.