Class GenericBrokerHostUsageImpl
- java.lang.Object
-
- org.apache.pulsar.broker.loadbalance.impl.GenericBrokerHostUsageImpl
-
- All Implemented Interfaces:
BrokerHostUsage
public class GenericBrokerHostUsageImpl extends java.lang.Object implements BrokerHostUsage
Class that will return the broker host usage.
-
-
Constructor Summary
Constructors Constructor Description GenericBrokerHostUsageImpl(int hostUsageCheckIntervalMin, java.util.concurrent.ScheduledExecutorService executorService)GenericBrokerHostUsageImpl(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.
-
-
-
Constructor Detail
-
GenericBrokerHostUsageImpl
public GenericBrokerHostUsageImpl(PulsarService pulsar)
-
GenericBrokerHostUsageImpl
public GenericBrokerHostUsageImpl(int hostUsageCheckIntervalMin, 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
-
-