Class LinuxBrokerHostUsageImpl

  • All Implemented Interfaces:
    BrokerHostUsage

    public class LinuxBrokerHostUsageImpl
    extends java.lang.Object
    implements BrokerHostUsage
    Class that will return the broker host usage.
    • Method Summary

      All Methods Instance Methods Concrete Methods 
      Modifier and Type Method Description
      void calculateBrokerHostUsage()
      Calculate the host usage information.
      org.apache.pulsar.policies.data.loadbalancer.SystemResourceUsage getBrokerHostUsage()
      Returns the host usage information.
      int getNicCount()  
      • Methods inherited from class java.lang.Object

        clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
    • 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: BrokerHostUsage
        Returns the host usage information.
        Specified by:
        getBrokerHostUsage in interface BrokerHostUsage
        Returns:
        Broker host usage in the json string format
      • getNicCount

        public int getNicCount()