public class LinuxBrokerHostUsageImpl extends Object implements BrokerHostUsage
| Constructor and Description |
|---|
LinuxBrokerHostUsageImpl(int hostUsageCheckIntervalMin,
Optional<Double> overrideBrokerNicSpeedGbps,
ScheduledExecutorService executorService) |
LinuxBrokerHostUsageImpl(PulsarService pulsar) |
| Modifier and Type | Method and Description |
|---|---|
void |
calculateBrokerHostUsage()
Calculate the host usage information.
|
org.apache.pulsar.policies.data.loadbalancer.SystemResourceUsage |
getBrokerHostUsage()
Returns the host usage information.
|
public LinuxBrokerHostUsageImpl(PulsarService pulsar)
public LinuxBrokerHostUsageImpl(int hostUsageCheckIntervalMin,
Optional<Double> overrideBrokerNicSpeedGbps,
ScheduledExecutorService executorService)
public org.apache.pulsar.policies.data.loadbalancer.SystemResourceUsage getBrokerHostUsage()
BrokerHostUsagegetBrokerHostUsage in interface BrokerHostUsagepublic void calculateBrokerHostUsage()
BrokerHostUsagecalculateBrokerHostUsage in interface BrokerHostUsageCopyright © 2017–2021 Apache Software Foundation. All rights reserved.