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