mx4j.tools.stats

Class TimedStatisticsRecorder

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 longgranularity
protected booleanregistered
protected TimedStatisticsRecorder.CollectTasktask
protected static Timertimer
Constructor Summary
TimedStatisticsRecorder()
Method Summary
longgetGranularity()
voidsetGranularity(long granularity)
protected voidstartObserving()
protected voidstopObserving()
StringtoString()

Field Detail

granularity

protected long granularity

registered

protected boolean registered

task

protected TimedStatisticsRecorder.CollectTask task

timer

protected static Timer timer

Constructor Detail

TimedStatisticsRecorder

public TimedStatisticsRecorder()

Method Detail

getGranularity

public long getGranularity()

setGranularity

public void setGranularity(long granularity)

startObserving

protected void startObserving()

stopObserving

protected void stopObserving()

toString

public String toString()
Copyright © 2001-2005 The MX4J Contributors. All Rights Reserved.