mx4j.tools.stats

Class NotificationStatisticsRecorder

Implemented Interfaces:
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 $

Field Summary

protected boolean
registered

Fields inherited from class mx4j.tools.stats.ObserverStatisticsRecorder

observedAttribute, observedName

Fields inherited from class mx4j.tools.stats.AbstractStatisticsRecorder

averageValue, count, entries, isActive, isDouble, maxEntries, maximumValue, minimumValue, recordingStart, server

Method Summary

void
handleNotification(javax.management.Notification notification, Object object)
protected void
startObserving()
protected void
stopObserving()
String
toString()

Methods inherited from class mx4j.tools.stats.ObserverStatisticsRecorder

doStart, doStop, getObservedAttribute, getObservedObject, setObservedAttribute, setObservedObject, startObserving, stopObserving

Methods inherited from class mx4j.tools.stats.AbstractStatisticsRecorder

addEntry, doStart, doStop, getAverage, getEntries, getLogger, getMax, getMaxEntries, getMin, getRecordingStart, isActive, postDeregister, postRegister, preDeregister, preRegister, setMaxEntries, start, stop

Field Details

registered

protected boolean registered

Method Details

handleNotification

public void handleNotification(javax.management.Notification notification,
                               Object object)
Specified by:
handleNotification in interface javax.management.NotificationListener

startObserving

protected void startObserving()
            throws Exception
Overrides:
startObserving in interface ObserverStatisticsRecorder

stopObserving

protected void stopObserving()
            throws Exception
Overrides:
stopObserving in interface ObserverStatisticsRecorder

toString

public String toString()

Copyright © 2001-2005 The MX4J Contributors. All Rights Reserved.