|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Object | +--com.jamonapi.NullAccumulateMonitor
Null implementation of the AccumulateMonitorInterface. Null objects are discussed in Martin Fowler's refactoring book. The NullAccumulateMonitor is a singleton (Gang of 4 pattern) and is used when the MonitorFactory is disabled. So when the MonitorFactory is disabled resource usage is very low and performance is very fast. All methods have empty/do nothing implementations.
| Method Summary | |
static AccumulateMonitorInterface |
createInstance()
|
long |
getAccrued()
Return the accrued value. |
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()
increase the stored value for this Monitor |
void |
increase(long increaseValue)
Increase the monitors value |
boolean |
isPrimary()
indicates whether or not this Monitor is primary or not. |
void |
reset()
Erase the values in the monitor |
void |
setPrimary(boolean primary)
Specify whether or not this Monitor is primary. |
void |
start()
start() gathering statistics for this Monitor |
void |
stop()
stop() gathering statistics for this Monitor |
java.lang.String |
toString()
|
| Methods inherited from class java.lang.Object |
equals, getClass, hashCode, notify, notifyAll, wait, wait, wait |
| Method Detail |
public static AccumulateMonitorInterface createInstance()
public void start()
AccumulateMonitorInterface
start in interface AccumulateMonitorInterfacepublic void stop()
AccumulateMonitorInterface
stop in interface AccumulateMonitorInterfacepublic long getAccrued()
MinimalMonitor
getAccrued in interface MinimalMonitorpublic void increase(long increaseValue)
MinimalMonitor
increase in interface MinimalMonitorpublic void increase()
AccumulateMonitorInterface
increase in interface AccumulateMonitorInterfacepublic void reset()
MinimalMonitor
reset in interface MinimalMonitorpublic void getData(java.util.ArrayList rowData)
MinimalMonitor
getData in interface MinimalMonitorpublic void getHeader(java.util.ArrayList header)
MinimalMonitor
getHeader in interface MinimalMonitorpublic java.lang.String toString()
toString in class java.lang.Objectpublic boolean isPrimary()
AccumulateMonitorInterface
isPrimary in interface AccumulateMonitorInterfacepublic void setPrimary(boolean primary)
AccumulateMonitorInterface
setPrimary in interface AccumulateMonitorInterface
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||