|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectorg.javasimon.source.DisabledStopwatchSource<L>
public class DisabledStopwatchSource<L>
Disabled stopwatch source.
| Field Summary | |
|---|---|
private static DisabledStopwatchSource |
INSTANCE
Singleton instance. |
| Constructor Summary | |
|---|---|
DisabledStopwatchSource()
|
|
| Method Summary | ||
|---|---|---|
static
|
get()
Returns a singleton instance. |
|
Manager |
getManager()
Returns the Manager used as a real source of monitors. |
|
Stopwatch |
getMonitor(L location)
Returns the monitor for given location. |
|
boolean |
isMonitored(L location)
Indicates whether given location should be monitored or not. |
|
Split |
start(L location)
Convenient method to return split for the location or disabled split, if the location is not monitored. |
|
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Field Detail |
|---|
private static final DisabledStopwatchSource INSTANCE
| Constructor Detail |
|---|
public DisabledStopwatchSource()
| Method Detail |
|---|
public static <L> DisabledStopwatchSource<L> get()
public Split start(L location)
StopwatchSource
start in interface StopwatchSource<L>location - location to be monitored
Split for the location or {Split#DISABLED} if the location is not monitoredpublic boolean isMonitored(L location)
MonitorSource
isMonitored in interface MonitorSource<L,Stopwatch>location - Location
public Stopwatch getMonitor(L location)
MonitorSource
getMonitor in interface MonitorSource<L,Stopwatch>location - Location
public Manager getManager()
MonitorSourceManager used as a real source of monitors.
getManager in interface MonitorSource<L,Stopwatch>
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||