Search in sources :

Example 1 with NamespaceBundleStatsComparator

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;
}
Also used : NamespaceBundleStatsComparator(org.apache.pulsar.common.util.NamespaceBundleStatsComparator) JsonIgnore(com.fasterxml.jackson.annotation.JsonIgnore)

Aggregations

JsonIgnore (com.fasterxml.jackson.annotation.JsonIgnore)1 NamespaceBundleStatsComparator (org.apache.pulsar.common.util.NamespaceBundleStatsComparator)1