Class BrokerMonitor


  • public class BrokerMonitor
    extends java.lang.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

      All Methods Static Methods Instance Methods Concrete Methods 
      Modifier and Type Method Description
      static void main​(java.lang.String[] args)
      Run a monitor from command line arguments.
      void start()
      Start the broker monitoring procedure.
      • Methods inherited from class java.lang.Object

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

      • 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 Detail

      • start

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

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