com.hammurapi.eventbus.monitoring
Class JmxStatsCollector

Show UML class diagram
java.lang.Object
  extended by com.hammurapi.eventbus.monitoring.JmxStatsCollector
All Implemented Interfaces:
StatsCollector

public class JmxStatsCollector
extends Object
implements StatsCollector

Statistics collector which exposes statistics as MBeans.


Constructor Summary
JmxStatsCollector(MBeanServer mBeanServer, String objectNamePrefix)
           
 
Method Summary
 void add(Stats root)
          Adds root statistics node.
 void remove(Stats root)
          Removes root statistics node.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

JmxStatsCollector

public JmxStatsCollector(MBeanServer mBeanServer,
                         String objectNamePrefix)
Parameters:
mBeanServer - MBean server to register statistics MBeans.
objectNamePrefix - Object name prefix for statistics MBeans without trailing comma. E.g. mycategory:mykey=myvalue.
Method Detail

add

public void add(Stats root)
Description copied from interface: StatsCollector
Adds root statistics node.

Specified by:
add in interface StatsCollector

remove

public void remove(Stats root)
Description copied from interface: StatsCollector
Removes root statistics node.

Specified by:
remove in interface StatsCollector