com.jamonapi
Class LastAccessMonitor

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

public class LastAccessMonitor
extends AccumulateMonitor

Class that tracks when a Monitor was first and last called.


Field Summary
 
Fields inherited from class com.jamonapi.AccumulateMonitor
accrued, ACTIVE, AVG, AVGACTIVE, HITS, MAX, MAXACTIVE, MILLISECONDS, MIN, NONE, STANDARD_DEVIATION, TOTAL
 
Constructor Summary
LastAccessMonitor()
           
LastAccessMonitor(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 increaseValue)
          Updates the accrued value which indicates when this method was last invoked.
static void main(java.lang.String[] args)
          Test code for this class
protected  void resetThis(long increaseValue)
          Erase/wipe out first accessed and last accessed variables
protected  void startThis()
          If this is the first time the method is called update the first accessed variable with the current time.
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, resetThis, setPrimary, start, stop, stopThis, toString, toStringChild
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Constructor Detail

LastAccessMonitor

public LastAccessMonitor()

LastAccessMonitor

public LastAccessMonitor(AccumulateMonitorInterface childMonitor)
Method Detail

increaseThis

protected void increaseThis(long increaseValue)
Updates the accrued value which indicates when this method was last invoked. This is used to track when the monitor was last called

Overrides:
increaseThis in class AccumulateMonitor

resetThis

protected void resetThis(long increaseValue)
Erase/wipe out first accessed and last accessed variables


startThis

protected void startThis()
If this is the first time the method is called update the first accessed variable with the current time.

Overrides:
startThis 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 code for this class

Throws:
java.lang.Exception