|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectorg.javasimon.source.AbstractStopwatchSource<T>
public abstract class AbstractStopwatchSource<T>
Base implementation for MonitorSource producings stopwatches.
| Field Summary | |
|---|---|
private Manager |
manager
Simon manager used for producing Stopwatches. |
| Constructor Summary | |
|---|---|
AbstractStopwatchSource(Manager manager)
Constructor with Manager. |
|
| Method Summary | |
|---|---|
Manager |
getManager()
Returns the Manager used as a real source of monitors. |
Stopwatch |
getMonitor(T location)
Provide a Stopwatch for given location. |
protected abstract String |
getMonitorName(T location)
Get monitor name for the given location. |
boolean |
isMonitored(T location)
Default implementation returns always true. |
Split |
start(T 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 final Manager manager
| Constructor Detail |
|---|
public AbstractStopwatchSource(Manager manager)
Manager.
manager - Simon manager used for producing Stopwatches| Method Detail |
|---|
public Manager getManager()
MonitorSourceManager used as a real source of monitors.
getManager in interface MonitorSource<T,Stopwatch>public boolean isMonitored(T location)
isMonitored in interface MonitorSource<T,Stopwatch>location - Location
protected abstract String getMonitorName(T location)
public Stopwatch getMonitor(T location)
getMonitor in interface MonitorSource<T,Stopwatch>location - Location
public Split start(T location)
StopwatchSource
start in interface StopwatchSource<T>location - location to be monitored
Split for the location or {Split#DISABLED} if the location is not monitored
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||