mx4j.tools.stats

Class TimedStatisticsRecorder

Implemented Interfaces:
javax.management.MBeanRegistration, ObserverStatisticsRecorderMBean, StatisticsRecorderMBean, TimedStatisticsRecorderMBean

public class TimedStatisticsRecorder
extends ObserverStatisticsRecorder
implements TimedStatisticsRecorderMBean

TimedStatisticsRecorder records statistics of an attribute with a timer polling the value every certain interval
Version:
$Revision: 1.4 $

Field Summary

protected long
granularity
protected boolean
registered
protected mx4j.tools.stats.TimedStatisticsRecorder.CollectTask
task
protected static Timer
timer

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

Constructor Summary

TimedStatisticsRecorder()

Method Summary

long
getGranularity()
void
setGranularity(long granularity)
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

granularity

protected long granularity

registered

protected boolean registered

task

protected mx4j.tools.stats.TimedStatisticsRecorder.CollectTask task

timer

protected static Timer timer

Constructor Details

TimedStatisticsRecorder

public TimedStatisticsRecorder()

Method Details

getGranularity

public long getGranularity()
Specified by:
getGranularity in interface TimedStatisticsRecorderMBean

setGranularity

public void setGranularity(long granularity)
Specified by:
setGranularity in interface TimedStatisticsRecorderMBean

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.