Class BrokerMonitor

java.lang.Object
org.apache.pulsar.testclient.BrokerMonitor

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

    • 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.
    • main

      public static void main(String[] args) throws Exception
      Run a monitor from command line arguments.
      Parameters:
      args - Arguments for the monitor.
      Throws:
      Exception