|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectorg.javasimon.spring.MonitoringInterceptor
public final class MonitoringInterceptor
Method interceptor that measures the duration of the intercepted call with a Stopwatch.
| Field Summary | |
|---|---|
private StopwatchTemplate<org.aopalliance.intercept.MethodInvocation> |
stopwatchTemplate
Stopwatch template. |
| Constructor Summary | |
|---|---|
MonitoringInterceptor()
Default constuctor using SimonManager.manager. |
|
MonitoringInterceptor(Manager manager)
Constuctor with specified Manager. |
|
MonitoringInterceptor(MonitorSource<org.aopalliance.intercept.MethodInvocation,Stopwatch> stopwatchSource)
Constructor with specified MonitorSource. |
|
| Method Summary | |
|---|---|
Object |
invoke(org.aopalliance.intercept.MethodInvocation invocation)
Performs method invocation and wraps it with Stopwatch. |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Field Detail |
|---|
private final StopwatchTemplate<org.aopalliance.intercept.MethodInvocation> stopwatchTemplate
| Constructor Detail |
|---|
public MonitoringInterceptor(MonitorSource<org.aopalliance.intercept.MethodInvocation,Stopwatch> stopwatchSource)
MonitorSource.
stopwatchSource - stopwtach provider for method invocationpublic MonitoringInterceptor(Manager manager)
Manager.
public MonitoringInterceptor()
SimonManager.manager.
| Method Detail |
|---|
public Object invoke(org.aopalliance.intercept.MethodInvocation invocation)
throws Throwable
invoke in interface org.aopalliance.intercept.MethodInterceptorinvocation - method invocation
Throwable - anything thrown by the method
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||