Class BrokerData
java.lang.Object
org.apache.pulsar.policies.data.loadbalancer.BrokerData
Data class containing three components comprising all the data available for the leader broker about other brokers: -
The local broker data which is written to ZooKeeper by each individual broker (LocalBrokerData). - The time average
bundle data which is written to ZooKeeper by the leader broker (TimeAverageBrokerData). - The preallocated bundles
which are not written to ZooKeeper but are maintained by the leader broker (Map<String, BundleData>).
-
Constructor Summary
ConstructorDescriptionBrokerData
(LocalBrokerData localData) Initialize this BrokerData using the most recent local data. -
Method Summary
-
Constructor Details
-
BrokerData
Initialize this BrokerData using the most recent local data.- Parameters:
localData
- The data local for the broker.
-