Class BrokerLoadManagerClassFilter

java.lang.Object
org.apache.pulsar.broker.loadbalance.impl.BrokerLoadManagerClassFilter
All Implemented Interfaces:
BrokerFilter

public class BrokerLoadManagerClassFilter extends Object implements BrokerFilter
  • Constructor Details

    • BrokerLoadManagerClassFilter

      public BrokerLoadManagerClassFilter()
  • Method Details

    • filter

      public void filter(Set<String> brokers, org.apache.pulsar.policies.data.loadbalancer.BundleData bundleToAssign, LoadData loadData, ServiceConfiguration conf) throws BrokerFilterException
      Description copied from interface: BrokerFilter
      From the given set of available broker candidates, filter those using the load data.
      Specified by:
      filter in interface BrokerFilter
      Parameters:
      brokers - The currently available brokers that have not already been filtered. This set may be modified by filter.
      bundleToAssign - The data for the bundle to assign.
      loadData - The load data from the leader broker.
      conf - The service configuration.
      Throws:
      BrokerFilterException - There was an error in the pipeline and the brokers should be reset to their original value