|
|||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||||
java.lang.Objectmx4j.tools.stats.AbstractStatisticsRecorder
Class AbstractStatisticsRecorder. Abstract Parent of the Stats collector classes. It implements some basic services
StatisticsRecorderMBean| Field Summary | |
protected double |
averageValue
|
protected long |
count
|
protected java.util.SortedMap |
entries
|
protected boolean |
isActive
|
protected boolean |
isDouble
|
protected int |
maxEntries
|
protected double |
maximumValue
|
protected double |
minimumValue
|
protected java.util.Date |
recordingStart
|
protected javax.management.MBeanServer |
server
|
| Constructor Summary | |
AbstractStatisticsRecorder()
|
|
| Method Summary | |
protected void |
addEntry(java.util.Date key,
java.lang.Number value)
Adds an entry to the collection. |
protected void |
doStart()
Subclasses may override this to offer a custom startup procedure |
protected void |
doStop()
Subclasses may override this to offer a custom stop procedure |
java.lang.Number |
getAverage()
Returns the Average Value |
java.util.SortedMap |
getEntries()
Returs a sorted map of the recorded values indexed by PointTime |
protected Logger |
getLogger()
|
java.lang.Number |
getMax()
Returns the Maximum Value |
int |
getMaxEntries()
Returns how many entries may be recorded. |
java.lang.Number |
getMin()
Returns the Minimum Value |
java.util.Date |
getRecordingStart()
Returns the date when it started recording |
boolean |
isActive()
Indicates whether the MBean is recording values |
void |
postDeregister()
|
void |
postRegister(java.lang.Boolean registrationDone)
|
void |
preDeregister()
|
javax.management.ObjectName |
preRegister(javax.management.MBeanServer server,
javax.management.ObjectName name)
|
void |
setMaxEntries(int maxEntries)
Sets the maximum entries stored in this recorder |
void |
start()
Starts recording a variable |
void |
stop()
Stops recording a variable |
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Field Detail |
protected boolean isActive
protected javax.management.MBeanServer server
protected int maxEntries
protected java.util.SortedMap entries
protected java.util.Date recordingStart
protected boolean isDouble
protected double minimumValue
protected double maximumValue
protected double averageValue
protected long count
| Constructor Detail |
public AbstractStatisticsRecorder()
| Method Detail |
protected Logger getLogger()
public void start()
StatisticsRecorderMBean
start in interface StatisticsRecorderMBeanpublic void stop()
StatisticsRecorderMBean
stop in interface StatisticsRecorderMBeanpublic java.lang.Number getAverage()
StatisticsRecorderMBean
getAverage in interface StatisticsRecorderMBeanpublic java.lang.Number getMin()
StatisticsRecorderMBean
getMin in interface StatisticsRecorderMBeanpublic java.lang.Number getMax()
StatisticsRecorderMBean
getMax in interface StatisticsRecorderMBeanpublic boolean isActive()
StatisticsRecorderMBean
isActive in interface StatisticsRecorderMBeanpublic int getMaxEntries()
StatisticsRecorderMBean
getMaxEntries in interface StatisticsRecorderMBeanpublic void setMaxEntries(int maxEntries)
StatisticsRecorderMBean
setMaxEntries in interface StatisticsRecorderMBeanpublic java.util.SortedMap getEntries()
StatisticsRecorderMBean
getEntries in interface StatisticsRecorderMBeanpublic java.util.Date getRecordingStart()
StatisticsRecorderMBean
getRecordingStart in interface StatisticsRecorderMBean
public javax.management.ObjectName preRegister(javax.management.MBeanServer server,
javax.management.ObjectName name)
throws java.lang.Exception
preRegister in interface javax.management.MBeanRegistrationjava.lang.Exceptionpublic void postRegister(java.lang.Boolean registrationDone)
postRegister in interface javax.management.MBeanRegistration
public void preDeregister()
throws java.lang.Exception
preDeregister in interface javax.management.MBeanRegistrationjava.lang.Exceptionpublic void postDeregister()
postDeregister in interface javax.management.MBeanRegistration
protected void doStart()
throws java.lang.Exception
java.lang.Exception
protected void doStop()
throws java.lang.Exception
java.lang.Exception
protected void addEntry(java.util.Date key,
java.lang.Number value)
|
|||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||||