|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectcom.jamonapi.Monitor
com.jamonapi.BaseMonitor
com.jamonapi.NullMonitor
Null implementation of the Monitor interface. Null objects are discussed in Martin Fowler's refactoring book. This class 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.
Constructor Summary | |
protected |
NullMonitor()
|
Method Summary | |
boolean |
isPrimary()
Is this a primary Monitor. |
void |
setPrimary(boolean primary)
Indicate that this a primary Monitor. |
Methods inherited from class com.jamonapi.BaseMonitor |
convertToString, getAccrued, getAccruedString, getData, getHeader, increase, reset, start, stop, toString |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
Constructor Detail |
protected NullMonitor()
Method Detail |
public boolean isPrimary()
Monitor
isPrimary
in class Monitor
public void setPrimary(boolean primary)
Monitor
setPrimary
in class Monitor
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |