Class GenericBrokerHostUsageImpl

java.lang.Object
org.apache.pulsar.broker.loadbalance.impl.GenericBrokerHostUsageImpl
All Implemented Interfaces:
BrokerHostUsage

public class GenericBrokerHostUsageImpl extends Object implements BrokerHostUsage
Class that will return the broker host usage.
  • Constructor Details

    • GenericBrokerHostUsageImpl

      public GenericBrokerHostUsageImpl(PulsarService pulsar)
    • GenericBrokerHostUsageImpl

      public GenericBrokerHostUsageImpl(int hostUsageCheckIntervalMin, ScheduledExecutorService executorService)
  • Method Details

    • getBrokerHostUsage

      public org.apache.pulsar.policies.data.loadbalancer.SystemResourceUsage getBrokerHostUsage()
      Description copied from interface: BrokerHostUsage
      Returns the host usage information.
      Specified by:
      getBrokerHostUsage in interface BrokerHostUsage
      Returns:
      Broker host usage in the json string format
    • calculateBrokerHostUsage

      public void calculateBrokerHostUsage()
      Description copied from interface: BrokerHostUsage
      Calculate the host usage information.
      Specified by:
      calculateBrokerHostUsage in interface BrokerHostUsage