|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectorg.javasimon.source.AbstractStopwatchSource<T>
org.javasimon.source.AbstractMethodStopwatchSource<T>
public abstract class AbstractMethodStopwatchSource<T>
Base class for Stopwatch sources working on method locations.
| Constructor Summary | |
|---|---|
AbstractMethodStopwatchSource(Manager manager)
Constructor using specific simon manager. |
|
| Method Summary | ||
|---|---|---|
CachedStopwatchSource<T,Method> |
cache()
Wraps this data source in a cache. |
|
Stopwatch |
getMonitor(T location)
Returns the Stopwatch for given join point. |
|
protected abstract Class<?> |
getTargetClass(T location)
Get target class from location. |
|
protected abstract Method |
getTargetMethod(T location)
Get target method from location. |
|
static
|
newCacheStopwatchSource(AbstractMethodStopwatchSource<T> stopwatchSource)
Wraps given stopwatch source in a cache. |
|
| Methods inherited from class org.javasimon.source.AbstractStopwatchSource |
|---|
getManager, getMonitorName, isMonitored, start |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
|---|
public AbstractMethodStopwatchSource(Manager manager)
manager - Simon manager| Method Detail |
|---|
protected abstract Class<?> getTargetClass(T location)
location - Location
protected abstract Method getTargetMethod(T location)
location - Location
public Stopwatch getMonitor(T location)
getMonitor in interface MonitorSource<T,Stopwatch>getMonitor in class AbstractStopwatchSource<T>location - Location
public static <T> CachedStopwatchSource<T,Method> newCacheStopwatchSource(AbstractMethodStopwatchSource<T> stopwatchSource)
stopwatchSource - Stopwatch source
public CachedStopwatchSource<T,Method> cache()
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||