类 TimeAverageBrokerData
java.lang.Object
org.apache.pulsar.policies.data.loadbalancer.TimeAverageBrokerData
Data class aggregating the short term and long term data across all bundles belonging to a broker.
-
构造器概要
构造器构造器说明TimeAverageBrokerData(Set<String> bundles, Map<String, BundleData> data, NamespaceBundleStats defaultStats) Initialize a TimeAverageBrokerData. -
方法概要
修饰符和类型方法说明voidreset(Set<String> bundles, Map<String, BundleData> data, NamespaceBundleStats defaultStats) Reuse this TimeAverageBrokerData using new data.
-
构造器详细资料
-
TimeAverageBrokerData
public TimeAverageBrokerData(Set<String> bundles, Map<String, BundleData> data, NamespaceBundleStats defaultStats) Initialize a TimeAverageBrokerData.- 参数:
bundles- The bundles belonging to the broker.data- Map from bundle names to the data for that bundle.defaultStats- The stats to use when a bundle belonging to this broker is not found in the bundle data map.
-
-
方法详细资料
-
reset
public void reset(Set<String> bundles, Map<String, BundleData> data, NamespaceBundleStats defaultStats) Reuse this TimeAverageBrokerData using new data.- 参数:
bundles- The bundles belonging to the broker.data- Map from bundle names to the data for that bundle.defaultStats- The stats to use when a bundle belonging to this broker is not found in the bundle data map.
-