|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object | +--com.jamonapi.Monitor | +--com.jamonapi.BaseMonitor | +--com.jamonapi.TimingMonitor
This is the Monitor class that starts the decorator chain of Monitors. It tracks the time for this monitor and passes the time down the chain to the other Monitors, so they can track the other statistics.
Method Summary | |
long |
getAccrued()
Returns the time that the Monitor has been running |
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 time by the specified ammount of milliseconds. |
boolean |
isPrimary()
Is this a primary Monitor. |
static void |
main(java.lang.String[] args)
Method with the classes test code |
void |
reset()
Resets the accrued time and restarts the Monitor |
void |
setPrimary(boolean primary)
Indicate that this a primary Monitor. |
Monitor |
start()
Start timing for the Monitor |
Monitor |
stop()
Stop the Monitor and keep track of how long it was running. |
java.lang.String |
toString()
|
Methods inherited from class com.jamonapi.BaseMonitor |
getAccruedString |
Methods inherited from class java.lang.Object |
equals, getClass, hashCode, notify, notifyAll, wait, wait, wait |
Method Detail |
public long getAccrued()
getAccrued
in interface MinimalMonitor
getAccrued
in class BaseMonitor
public void reset()
reset
in interface MinimalMonitor
reset
in class BaseMonitor
public void increase(long increaseValue)
increase
in interface MinimalMonitor
increase
in class BaseMonitor
public Monitor start()
start
in class BaseMonitor
public void getData(java.util.ArrayList rowData)
MinimalMonitor
getData
in interface MinimalMonitor
getData
in class BaseMonitor
public void getHeader(java.util.ArrayList header)
MinimalMonitor
getHeader
in interface MinimalMonitor
getHeader
in class BaseMonitor
public Monitor stop()
stop
in class BaseMonitor
public boolean isPrimary()
Monitor
isPrimary
in class Monitor
public void setPrimary(boolean primary)
Monitor
setPrimary
in class Monitor
public java.lang.String toString()
toString
in class BaseMonitor
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 |