mx4j.tools.stats
Class NotificationStatisticsRecorder
java.lang.Object
mx4j.tools.stats.AbstractStatisticsRecorder
mx4j.tools.stats.ObserverStatisticsRecorder
mx4j.tools.stats.NotificationStatisticsRecorder
- All Implemented Interfaces:
- java.util.EventListener, javax.management.MBeanRegistration, javax.management.NotificationListener, ObserverStatisticsRecorderMBean, StatisticsRecorderMBean
- public class NotificationStatisticsRecorder
- extends ObserverStatisticsRecorder
- implements javax.management.NotificationListener
NotificationStatisticsRecorder records statistics of an attribute
based on notifications emitted when it changes. The observed MBean has to
emit notifications when the value change
- Version:
- $Revision: 1.4 $
Methods inherited from class mx4j.tools.stats.AbstractStatisticsRecorder |
addEntry, getAverage, getEntries, getLogger, getMax, getMaxEntries, getMin, getRecordingStart, isActive, postDeregister, postRegister, preDeregister, preRegister, setMaxEntries, start, stop |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
registered
protected boolean registered
NotificationStatisticsRecorder
public NotificationStatisticsRecorder()
startObserving
protected void startObserving()
throws java.lang.Exception
- Specified by:
startObserving
in class ObserverStatisticsRecorder
- Throws:
java.lang.Exception
stopObserving
protected void stopObserving()
throws java.lang.Exception
- Specified by:
stopObserving
in class ObserverStatisticsRecorder
- Throws:
java.lang.Exception
handleNotification
public void handleNotification(javax.management.Notification notification,
java.lang.Object object)
- Specified by:
handleNotification
in interface javax.management.NotificationListener
toString
public java.lang.String toString()
Copyright © 2001-2005 The MX4J Contributors. All Rights Reserved.