com.jamonapi
Class TimeStatsDistMonitor

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

public class TimeStatsDistMonitor
extends AccumulateMonitor

TimeStatsDistMonitor keeps track of statistics for JAMon time ranges. See www.jamonapi.com for more info. One powerful feature of this class is that it correlates performance to the number of active monitors with this label, the number of primary active monitors and the number of globally active monitors.


Field Summary
 
Fields inherited from class com.jamonapi.AccumulateMonitor
accrued, ACTIVE, AVG, AVGACTIVE, HITS, MAX, MAXACTIVE, MILLISECONDS, MIN, NONE, STANDARD_DEVIATION, TOTAL
 
Constructor Summary
TimeStatsDistMonitor()
           
TimeStatsDistMonitor(AccumulateMonitorInterface childMonitor)
           
 
Method Summary
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)
          increase(...) is called by TimingMonitor right before stop is called.
static void main(java.lang.String[] args)
          Test method for this class
protected  void resetThis()
          Erase/wipe out any accrued statistics for this monitor
protected  void startThis()
          Increment counters for the number of active monitors of this instance, globally active monitors and primary active monitors.
protected  void stopThis()
          Decrement counters for the number of active monitors of this instance, globally active monitors and primary active monitors.
protected  java.lang.String toStringThis()
          Display this Monitor in String format
 
Methods inherited from class com.jamonapi.AccumulateMonitor
convertToString, getAccrued, 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

TimeStatsDistMonitor

public TimeStatsDistMonitor()

TimeStatsDistMonitor

public TimeStatsDistMonitor(AccumulateMonitorInterface childMonitor)
Method Detail

increaseThis

protected void increaseThis(long value)
increase(...) is called by TimingMonitor right before stop is called. The distribution statistics are tracked in this method

Overrides:
increaseThis in class AccumulateMonitor

startThis

protected void startThis()
Increment counters for the number of active monitors of this instance, globally active monitors and primary active monitors. These numbers can be associated to performance to give a feel for scalability and other performance relationships in the application. see www.jamonapi.com for more info on the active concept and JAMon time ranges

Overrides:
startThis in class AccumulateMonitor

stopThis

protected void stopThis()
Decrement counters for the number of active monitors of this instance, globally active monitors and primary active monitors. These numbers can be associated to performance to give a feel for scalability and other performance relationships in the application. see www.jamonapi.com for more info on the active concept and JAMon time ranges

Overrides:
stopThis in class AccumulateMonitor

resetThis

protected void resetThis()
Description copied from class: AccumulateMonitor
Erase/wipe out any accrued statistics for this monitor

Overrides:
resetThis in class AccumulateMonitor

toStringThis

protected java.lang.String toStringThis()
Description copied from class: AccumulateMonitor
Display this Monitor in String format

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

main

public static void main(java.lang.String[] args)
                 throws java.lang.Exception
Test method for this class

Throws:
java.lang.Exception