|
||||||||||
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 AccumulateMonitorInterface
public void stop()
AccumulateMonitorInterface
stop
in interface AccumulateMonitorInterface
public long getAccrued()
MinimalMonitor
getAccrued
in interface MinimalMonitor
public void increase(long increaseValue)
MinimalMonitor
increase
in interface MinimalMonitor
public void increase()
AccumulateMonitorInterface
increase
in interface AccumulateMonitorInterface
public void reset()
MinimalMonitor
reset
in interface MinimalMonitor
public void getData(java.util.ArrayList rowData)
MinimalMonitor
getData
in interface MinimalMonitor
public void getHeader(java.util.ArrayList header)
MinimalMonitor
getHeader
in interface MinimalMonitor
public java.lang.String toString()
toString
in class java.lang.Object
public boolean isPrimary()
AccumulateMonitorInterface
isPrimary
in interface AccumulateMonitorInterface
public 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 |