|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectcom.jamonapi.AccumulateMonitor
com.jamonapi.ActiveStatsMonitor
Tracks statistics for Monitors that are currently running. The statistics tracked are how often this Monitor is called (hits), how many outstanding invocations of start() have been called without a stop() for this instance (active), what is the average number of active for this instance, and what was the maximum number of active for this instance.
Field Summary |
Fields inherited from class com.jamonapi.AccumulateMonitor |
accrued, ACTIVE, AVG, AVGACTIVE, HITS, MAX, MAXACTIVE, MILLISECONDS, MIN, NONE, STANDARD_DEVIATION, TOTAL |
Constructor Summary | |
ActiveStatsMonitor()
|
|
ActiveStatsMonitor(AccumulateMonitorInterface childMonitor)
Constructor that uses the Gang Of 4's decorator pattern. |
Method Summary | |
long |
getAccrued()
Return the number of Active Monitors of this instance |
protected void |
getDataThis(java.util.ArrayList rowData)
Add this instances data to the ArrayList. |
protected void |
getHeaderThis(java.util.ArrayList header)
Add this instances header to the ArrayList. |
protected void |
increaseThis(long increase)
Add the value passed to this method to the Monitor's accrued value |
static void |
main(java.lang.String[] args)
Method that contains test data for this class |
protected void |
resetThis()
Reset the variables for this instance to their default values |
protected void |
startThis()
Adjust the statistics being tracked whenever start() is called. |
protected void |
stopThis()
Adjust the statistics being tracked whenever stop() is called. |
protected java.lang.String |
toStringThis()
Convert this Monitor to its String value for display purposes |
Methods inherited from class com.jamonapi.AccumulateMonitor |
convertToString, getAccruedString, getData, getDisplayString, getHeader, getType, getUnits, increase, increase, isPrimary, reset, setPrimary, start, stop, toString, toStringChild |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
Constructor Detail |
public ActiveStatsMonitor()
public ActiveStatsMonitor(AccumulateMonitorInterface childMonitor)
Method Detail |
protected void startThis()
startThis
in class AccumulateMonitor
protected void stopThis()
stopThis
in class AccumulateMonitor
protected void increaseThis(long increase)
AccumulateMonitor
increaseThis
in class AccumulateMonitor
protected void resetThis()
resetThis
in class AccumulateMonitor
protected java.lang.String toStringThis()
toStringThis
in class AccumulateMonitor
protected void getDataThis(java.util.ArrayList rowData)
getDataThis
in class AccumulateMonitor
protected void getHeaderThis(java.util.ArrayList header)
getHeaderThis
in class AccumulateMonitor
public long getAccrued()
getAccrued
in interface MinimalMonitor
getAccrued
in class AccumulateMonitor
public static void main(java.lang.String[] args) throws java.lang.Exception
java.lang.Exception
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |