java.lang.Object
org.apache.pulsar.policies.data.loadbalancer.BrokerData

public class BrokerData extends Object
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 Details

    • BrokerData

      public BrokerData(LocalBrokerData localData)
      Initialize this BrokerData using the most recent local data.
      Parameters:
      localData - The data local for the broker.