|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object org.jmonit.support.aop.PerformanceInterceptor
public class PerformanceInterceptor
AOP-alliance interceptor to evaluate component performances using an intercpetor. Typically used with spring-aop.
Constructor Summary | |
---|---|
PerformanceInterceptor()
|
Method Summary | |
---|---|
protected Monitor |
getFailureMonitor(Monitor monitor,
java.lang.Throwable error)
Select a monitor for method invocation failures. |
protected java.lang.String |
getMonitorName(org.aopalliance.intercept.MethodInvocation invocation)
Compute the monitor name associated to this mehod invocation |
protected Repository |
getRepository()
Get the current repository |
protected Monitor |
getSuccessMonitor(Monitor monitor)
Select a monitor for successful method invocations. |
java.lang.Object |
invoke(org.aopalliance.intercept.MethodInvocation invocation)
|
void |
setRepository(Repository repository)
Set a custom application-defined repository |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public PerformanceInterceptor()
Method Detail |
---|
public final java.lang.Object invoke(org.aopalliance.intercept.MethodInvocation invocation) throws java.lang.Throwable
invoke
in interface org.aopalliance.intercept.MethodInterceptor
java.lang.Throwable
MethodInterceptor.invoke(org.aopalliance.intercept.MethodInvocation)
protected Monitor getSuccessMonitor(Monitor monitor)
monitor
- the monitor associated to this mehod invocation
null
if no monitoring is expectedprotected Monitor getFailureMonitor(Monitor monitor, java.lang.Throwable error)
monitor
- the monitor associated to this mehod invocation
null
if no monitoring is expectedprotected java.lang.String getMonitorName(org.aopalliance.intercept.MethodInvocation invocation)
invocation
- method beeing invoked
null
, nothing will be monitoredpublic void setRepository(Repository repository)
repository
- protected Repository getRepository()
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |