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 Summary

    Constructors
    Constructor
    Description
    BrokerMonitor(org.apache.zookeeper.ZooKeeper zkClient)
    Create a broker monitor from the given ZooKeeper client.
  • Method Summary

    Modifier and Type
    Method
    Description
    static void
    main(String[] args)
    Run a monitor from command line arguments.
    void
    Start the broker monitoring procedure.

    Methods inherited from class java.lang.Object

    clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
  • Constructor Details

    • BrokerMonitor

      public BrokerMonitor(org.apache.zookeeper.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