Class LinuxBrokerHostUsageImpl
java.lang.Object
org.apache.pulsar.broker.loadbalance.impl.LinuxBrokerHostUsageImpl
- All Implemented Interfaces:
BrokerHostUsage
Class that will return the broker host usage.
-
Constructor Summary
ConstructorsConstructorDescriptionLinuxBrokerHostUsageImpl(int hostUsageCheckIntervalMin, Optional<Double> overrideBrokerNicSpeedGbps, ScheduledExecutorService executorService) -
Method Summary
Modifier and TypeMethodDescriptionvoidCalculate the host usage information.org.apache.pulsar.policies.data.loadbalancer.SystemResourceUsageReturns the host usage information.
-
Constructor Details
-
LinuxBrokerHostUsageImpl
-
LinuxBrokerHostUsageImpl
public LinuxBrokerHostUsageImpl(int hostUsageCheckIntervalMin, Optional<Double> overrideBrokerNicSpeedGbps, ScheduledExecutorService executorService)
-
-
Method Details
-
getBrokerHostUsage
public org.apache.pulsar.policies.data.loadbalancer.SystemResourceUsage getBrokerHostUsage()Description copied from interface:BrokerHostUsageReturns the host usage information.- Specified by:
getBrokerHostUsagein interfaceBrokerHostUsage- Returns:
- Broker host usage in the json string format
-
calculateBrokerHostUsage
public void calculateBrokerHostUsage()Description copied from interface:BrokerHostUsageCalculate the host usage information.- Specified by:
calculateBrokerHostUsagein interfaceBrokerHostUsage
-