Class LinuxBrokerHostUsageImpl
- java.lang.Object
-
- org.apache.pulsar.broker.loadbalance.impl.LinuxBrokerHostUsageImpl
-
- All Implemented Interfaces:
BrokerHostUsage
public class LinuxBrokerHostUsageImpl extends java.lang.Object implements BrokerHostUsage
Class that will return the broker host usage.
-
-
Constructor Summary
Constructors Constructor Description LinuxBrokerHostUsageImpl(int hostUsageCheckIntervalMin, java.util.Optional<java.lang.Double> overrideBrokerNicSpeedGbps, java.util.concurrent.ScheduledExecutorService executorService)LinuxBrokerHostUsageImpl(PulsarService pulsar)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description voidcalculateBrokerHostUsage()Calculate the host usage information.org.apache.pulsar.policies.data.loadbalancer.SystemResourceUsagegetBrokerHostUsage()Returns the host usage information.intgetNicCount()
-
-
-
Constructor Detail
-
LinuxBrokerHostUsageImpl
public LinuxBrokerHostUsageImpl(PulsarService pulsar)
-
LinuxBrokerHostUsageImpl
public LinuxBrokerHostUsageImpl(int hostUsageCheckIntervalMin, java.util.Optional<java.lang.Double> overrideBrokerNicSpeedGbps, java.util.concurrent.ScheduledExecutorService executorService)
-
-
Method Detail
-
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
-
getNicCount
public int getNicCount()
-
-