|
||||||||||
| 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 MinimalMonitorgetAccrued in class BaseMonitorpublic void reset()
reset in interface MinimalMonitorreset in class BaseMonitorpublic void increase(long increaseValue)
increase in interface MinimalMonitorincrease in class BaseMonitorpublic Monitor start()
start in class BaseMonitorpublic void getData(java.util.ArrayList rowData)
MinimalMonitor
getData in interface MinimalMonitorgetData in class BaseMonitorpublic void getHeader(java.util.ArrayList header)
MinimalMonitor
getHeader in interface MinimalMonitorgetHeader in class BaseMonitorpublic Monitor stop()
stop in class BaseMonitorpublic boolean isPrimary()
Monitor
isPrimary in class Monitorpublic void setPrimary(boolean primary)
Monitor
setPrimary in class Monitorpublic 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 | |||||||||