Examples of UrlComparator


Examples of com.dianping.cat.report.task.heavy.HeavyReportMerger.UrlComparator

    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);
    }

    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);
    }

    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
Copyright © 2018 www.massapi.com. 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.