public class DisabledMonitorSource<L,M extends Simon> extends Object implements MonitorSource<L,M>
Constructor and Description |
---|
DisabledMonitorSource() |
Modifier and Type | Method and Description |
---|---|
static <L,M extends Simon> |
get()
Returns a singleton instance.
|
Manager |
getManager()
Returns the
Manager used as a real source of monitors. |
M |
getMonitor(L location)
Always returns null.
|
boolean |
isMonitored(L location)
Always returns false.
|
public DisabledMonitorSource()
public static <L,M extends Simon> DisabledMonitorSource<L,M> get()
public M getMonitor(L location)
getMonitor
in interface MonitorSource<L,M extends Simon>
location
- Locationpublic boolean isMonitored(L location)
isMonitored
in interface MonitorSource<L,M extends Simon>
location
- Locationpublic Manager getManager()
MonitorSource
Manager
used as a real source of monitors.getManager
in interface MonitorSource<L,M extends Simon>
Copyright © 2019. All rights reserved.