use of org.apache.pulsar.common.util.NamespaceBundleStatsComparator in project incubator-pulsar by apache.
the class LoadReport method getSortedBundleStats.
@JsonIgnore
public TreeMap<String, NamespaceBundleStats> getSortedBundleStats(ResourceType resType) {
if (bundleStats == null) {
return null;
}
NamespaceBundleStatsComparator nsc = new NamespaceBundleStatsComparator(bundleStats, resType);
TreeMap<String, NamespaceBundleStats> sortedBundleStats = Maps.newTreeMap(nsc);
sortedBundleStats.putAll(bundleStats);
return sortedBundleStats;
}
Aggregations