Class BrokerMonitor

java.lang.Object
org.apache.pulsar.testclient.CmdBase
org.apache.pulsar.testclient.BrokerMonitor
All Implemented Interfaces:
Callable<Integer>

public class BrokerMonitor extends CmdBase
Monitors brokers and prints to the console information about their system resource usages, their topic and bundle counts, their message rates, and other metrics.
  • Field Details

    • connectString

      public String connectString
  • Constructor Details

    • BrokerMonitor

      public BrokerMonitor()
    • BrokerMonitor

      public BrokerMonitor(ZooKeeper zkClient)
      Create a broker monitor from the given ZooKeeper client.
      Parameters:
      zkClient - Client to create this from.
  • Method Details

    • start

      public void start()
      Start the broker monitoring procedure.
    • run

      public void run() throws Exception
      Specified by:
      run in class CmdBase
      Throws:
      Exception