com.jamonapi
Class Monitor
java.lang.Object
|
+--com.jamonapi.Monitor
- All Implemented Interfaces:
- MinimalMonitor
- Direct Known Subclasses:
- BaseMonitor
- public abstract class Monitor
- extends java.lang.Object
- implements MinimalMonitor
The basic Monitor interface used by all of the Timing related Monitors. Note I did not use an interface because
start() has package access. Due to multithreading issues I didn't want developers to be able to execute the Monitor's
start() method however it did want to ensure that the method was provided.
Method Summary |
abstract boolean |
isPrimary()
Is this a primary Monitor. |
abstract void |
setPrimary(boolean primary)
Indicate that this a primary Monitor. |
abstract Monitor |
stop()
Stop the montior |
Methods inherited from class java.lang.Object |
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Monitor
public Monitor()
stop
public abstract Monitor stop()
- Stop the montior
isPrimary
public abstract boolean isPrimary()
- Is this a primary Monitor. See www.jamonapi.com for an explanation of primary monitors
setPrimary
public abstract void setPrimary(boolean primary)
- Indicate that this a primary Monitor. See www.jamonapi.com for an explanation of primary monitors