com.jamonapi
Class TimeStatsMonitor

java.lang.Object
  extended bycom.jamonapi.AccumulateMonitor
      extended bycom.jamonapi.TimeStatsMonitor
All Implemented Interfaces:
AccumulateMonitorInterface, MinimalMonitor

public class TimeStatsMonitor
extends AccumulateMonitor

Monitor that keeps track of various timing statistics such as max, min, average, hits, total, and standard deviation.


Field Summary
 
Fields inherited from class com.jamonapi.AccumulateMonitor
accrued, ACTIVE, AVG, AVGACTIVE, HITS, MAX, MAXACTIVE, MILLISECONDS, MIN, NONE, STANDARD_DEVIATION, TOTAL
 
Constructor Summary
TimeStatsMonitor()
           
TimeStatsMonitor(AccumulateMonitorInterface childMonitor)
           
 
Method Summary
 long getAccrued()
          Returned the total accrued time for this monitor
protected  void getDataThis(java.util.ArrayList rowData)
          Add this Monitor's accrued value in string format to an ArrayList.
protected  void getHeaderThis(java.util.ArrayList header)
           
protected  void increaseThis(long value)
          Called when increase() is called by the stop() method.
static void main(java.lang.String[] args)
          The main method contains this classes test code
protected  void resetThis()
          Reset all variables for this object.
protected  java.lang.String toStringThis()
          Make a String representation of this object.
 
Methods inherited from class com.jamonapi.AccumulateMonitor
convertToString, getAccruedString, getData, getDisplayString, getHeader, getType, getUnits, increase, increase, isPrimary, reset, setPrimary, start, startThis, stop, stopThis, toString, toStringChild
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Constructor Detail

TimeStatsMonitor

public TimeStatsMonitor()

TimeStatsMonitor

public TimeStatsMonitor(AccumulateMonitorInterface childMonitor)
Method Detail

increaseThis

protected void increaseThis(long value)
Called when increase() is called by the stop() method. This is the method that keeps track of the various statistics being tracked

Overrides:
increaseThis in class AccumulateMonitor

resetThis

protected void resetThis()
Reset all variables for this object. The effect of this is to reset this objects variables to the state they were in when the object was first created.

Overrides:
resetThis in class AccumulateMonitor

toStringThis

protected java.lang.String toStringThis()
Make a String representation of this object. Information displayed in the string include hits, average, total, min and max

Overrides:
toStringThis in class AccumulateMonitor

getDataThis

protected void getDataThis(java.util.ArrayList rowData)
Description copied from class: AccumulateMonitor
Add this Monitor's accrued value in string format to an ArrayList.

Overrides:
getDataThis in class AccumulateMonitor

getHeaderThis

protected void getHeaderThis(java.util.ArrayList header)
Overrides:
getHeaderThis in class AccumulateMonitor

getAccrued

public long getAccrued()
Returned the total accrued time for this monitor

Specified by:
getAccrued in interface MinimalMonitor
Overrides:
getAccrued in class AccumulateMonitor

main

public static void main(java.lang.String[] args)
                 throws java.lang.Exception
The main method contains this classes test code

Throws:
java.lang.Exception