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

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


    }
    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


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

      Collections.sort(callServices, new ServiceComparator());
      model.setCallUrls(callUrls);
      model.setCallServices(callServices);
    }

    HeavySql heavySql = heavyReport.getHeavySql();

    if (heavySql != null) {
      List<Url> sqlUrls = new ArrayList<Url>(heavySql.getUrls().values());
      List<Service> sqlServices = new ArrayList<Service>(heavySql.getServices().values());
      Collections.sort(sqlUrls, new UrlComparator());
      Collections.sort(sqlServices, new ServiceComparator());
      model.setSqlUrls(sqlUrls);
      model.setSqlServices(sqlServices);
    }
View Full Code Here

TOP

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

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.