com.jamonapi
Class NullMonitor
java.lang.Object
|
+--com.jamonapi.Monitor
|
+--com.jamonapi.BaseMonitor
|
+--com.jamonapi.NullMonitor
- All Implemented Interfaces:
- MinimalMonitor
- public final class NullMonitor
- extends BaseMonitor
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.
Method Summary |
boolean |
isPrimary()
Is this a primary Monitor. |
void |
setPrimary(boolean primary)
Indicate that this a primary Monitor. |
Methods inherited from class java.lang.Object |
equals, getClass, hashCode, notify, notifyAll, wait, wait, wait |
isPrimary
public boolean isPrimary()
- Description copied from class:
Monitor
- Is this a primary Monitor. See www.jamonapi.com for an explanation of primary monitors
- Specified by:
isPrimary
in class Monitor
setPrimary
public void setPrimary(boolean primary)
- Description copied from class:
Monitor
- Indicate that this a primary Monitor. See www.jamonapi.com for an explanation of primary monitors
- Specified by:
setPrimary
in class Monitor