Class BrokerLoadManagerClassFilter
java.lang.Object
org.apache.pulsar.broker.loadbalance.impl.BrokerLoadManagerClassFilter
- All Implemented Interfaces:
BrokerFilter
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionvoidfilter(Set<String> brokers, org.apache.pulsar.policies.data.loadbalancer.BundleData bundleToAssign, LoadData loadData, ServiceConfiguration conf) From the given set of available broker candidates, filter those using the load data.
-
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:BrokerFilterFrom the given set of available broker candidates, filter those using the load data.- Specified by:
filterin interfaceBrokerFilter- 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
-