| Package | Description |
|---|---|
| org.apache.pulsar.common.policies.data |
Definition of different data structures for policies.
|
| org.apache.pulsar.policies.data.loadbalancer |
Classes to define policies for the load distribution.
|
| Modifier and Type | Method and Description |
|---|---|
void |
ResourceQuota.add(ResourceQuota quota)
Add quota.
|
void |
ResourceQuota.substract(ResourceQuota quota)
Substract quota.
|
| Modifier and Type | Method and Description |
|---|---|
void |
ResourceUnitRanking.addPreAllocatedServiceUnit(String suName,
ResourceQuota quota)
Pre-allocate a ServiceUnit to this ResourceUnit.
|
static long |
ResourceUnitRanking.calculateBrokerMaxCapacity(SystemResourceUsage systemResourceUsage,
ResourceQuota defaultQuota)
Estimate the maximum number namespace bundles a ResourceUnit is able to handle with all resource.
|
long |
ResourceUnitRanking.estimateMaxCapacity(ResourceQuota defaultQuota)
Estimate the maximum number of namespace bundles ths ResourceUnit is able to handle with all resource.
|
void |
ResourceUnitRanking.removeLoadedServiceUnit(String suName,
ResourceQuota quota)
Remove a service unit from the loaded bundle list.
|
| Constructor and Description |
|---|
ResourceUnitRanking(SystemResourceUsage systemResourceUsage,
Set<String> loadedBundles,
ResourceQuota allocatedQuota,
Set<String> preAllocatedBundles,
ResourceQuota preAllocatedQuota) |
Copyright © 2017–2021 Apache Software Foundation. All rights reserved.