org.javasimon.source
Class DisabledMonitorSource<L,M extends Simon>

java.lang.Object
  extended by org.javasimon.source.DisabledMonitorSource<L,M>
All Implemented Interfaces:
MonitorSource<L,M>

public class DisabledMonitorSource<L,M extends Simon>
extends Object
implements MonitorSource<L,M>

Disabled monitor source.

Author:
gquintana

Field Summary
private static DisabledMonitorSource INSTANCE
          Singleton instance.
 
Constructor Summary
DisabledMonitorSource()
           
 
Method Summary
static
<L,M extends Simon>
DisabledMonitorSource<L,M>
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.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

INSTANCE

private static final DisabledMonitorSource INSTANCE
Singleton instance.

Constructor Detail

DisabledMonitorSource

public DisabledMonitorSource()
Method Detail

get

public static <L,M extends Simon> DisabledMonitorSource<L,M> get()
Returns a singleton instance.


getMonitor

public M getMonitor(L location)
Always returns null.

Specified by:
getMonitor in interface MonitorSource<L,M extends Simon>
Parameters:
location - Location
Returns:
Monitor

isMonitored

public boolean isMonitored(L location)
Always returns false.

Specified by:
isMonitored in interface MonitorSource<L,M extends Simon>
Parameters:
location - Location
Returns:
true means monitored

getManager

public Manager getManager()
Description copied from interface: MonitorSource
Returns the Manager used as a real source of monitors.

Specified by:
getManager in interface MonitorSource<L,M extends Simon>
Returns:
Manager to get the monitors from


Copyright © 2013. All Rights Reserved.