public class TimeAverageBrokerData extends Object
| Constructor and Description |
|---|
TimeAverageBrokerData(Set<String> bundles,
Map<String,BundleData> data,
org.apache.pulsar.policies.data.loadbalancer.NamespaceBundleStats defaultStats)
Initialize a TimeAverageBrokerData.
|
| Modifier and Type | Method and Description |
|---|---|
void |
reset(Set<String> bundles,
Map<String,BundleData> data,
org.apache.pulsar.policies.data.loadbalancer.NamespaceBundleStats defaultStats)
Reuse this TimeAverageBrokerData using new data.
|
public TimeAverageBrokerData(Set<String> bundles, Map<String,BundleData> data, org.apache.pulsar.policies.data.loadbalancer.NamespaceBundleStats defaultStats)
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.public void reset(Set<String> bundles, Map<String,BundleData> data, org.apache.pulsar.policies.data.loadbalancer.NamespaceBundleStats defaultStats)
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.Copyright © 2017–2022 Apache Software Foundation. All rights reserved.