public interface ModularLoadManagerStrategy
| Modifier and Type | Method and Description |
|---|---|
static ModularLoadManagerStrategy |
create(ServiceConfiguration conf)
Create a placement strategy using the configuration.
|
Optional<String> |
selectBroker(Set<String> candidates,
BundleData bundleToAssign,
LoadData loadData,
ServiceConfiguration conf)
Find a suitable broker to assign the given bundle to.
|
Optional<String> selectBroker(Set<String> candidates, BundleData bundleToAssign, LoadData loadData, ServiceConfiguration conf)
candidates - The candidates for which the bundle may be assigned.bundleToAssign - The data for the bundle to assign.loadData - The load data from the leader broker.conf - The service configuration.static ModularLoadManagerStrategy create(ServiceConfiguration conf)
conf - ServiceConfiguration to use.Copyright © 2017–2021 Apache Software Foundation. All rights reserved.