com.jamonapi
Class BaseMonitor

java.lang.Object
  extended bycom.jamonapi.Monitor
      extended bycom.jamonapi.BaseMonitor
All Implemented Interfaces:
MinimalMonitor
Direct Known Subclasses:
NullMonitor, TimingMonitor

public abstract class BaseMonitor
extends Monitor

Abstract base class for other Monitors


Constructor Summary
BaseMonitor()
           
 
Method Summary
protected  java.lang.String convertToString(long value)
           
 long getAccrued()
          Return the accrued value.
 java.lang.String getAccruedString()
           
 void getData(java.util.ArrayList rowData)
          Add this elements value to the ArrayList.
 void getHeader(java.util.ArrayList header)
          Add this elements header value to an ArrayList.
 void increase(long increaseValue)
          Increase the monitors value
 void reset()
          Erase the values in the monitor
 Monitor start()
           
 Monitor stop()
          Stop the montior
 java.lang.String toString()
           
 
Methods inherited from class com.jamonapi.Monitor
isPrimary, setPrimary
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Constructor Detail

BaseMonitor

public BaseMonitor()
Method Detail

getAccrued

public long getAccrued()
Description copied from interface: MinimalMonitor
Return the accrued value. In the case of timing monitors this would be the elapsed time since the timer started


toString

public java.lang.String toString()

getAccruedString

public java.lang.String getAccruedString()

convertToString

protected java.lang.String convertToString(long value)

reset

public void reset()
Description copied from interface: MinimalMonitor
Erase the values in the monitor


increase

public void increase(long increaseValue)
Description copied from interface: MinimalMonitor
Increase the monitors value


start

public Monitor start()

stop

public Monitor stop()
Description copied from class: Monitor
Stop the montior

Specified by:
stop in class Monitor

getData

public void getData(java.util.ArrayList rowData)
Description copied from interface: MinimalMonitor
Add this elements value to the ArrayList. This is used to display the Monitor in a tabular format.


getHeader

public void getHeader(java.util.ArrayList header)
Description copied from interface: MinimalMonitor
Add this elements header value to an ArrayList. This is used to display the Monitor in a tabular format.