Class LinuxBrokerHostUsageImpl

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

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

    • LinuxBrokerHostUsageImpl

      public LinuxBrokerHostUsageImpl(PulsarService pulsar)
    • 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: 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