java.lang.Object
com.erudika.para.server.aop.SearchQueryAspect
- All Implemented Interfaces:
org.aopalliance.aop.Advice
,org.aopalliance.intercept.Interceptor
,org.aopalliance.intercept.MethodInterceptor
public class SearchQueryAspect
extends Object
implements org.aopalliance.intercept.MethodInterceptor
This method interceptor watches search queries fora all
Search
implementations and gathers metrics.
It listens for calls to Search
methods, annotated with Measured
.- Author:
- Alex Bogdanovski [[email protected]]
- See Also:
-
Constructor Summary
-
Method Summary
-
Constructor Details
-
SearchQueryAspect
public SearchQueryAspect()
-
-
Method Details
-
invoke
Executes code when a method is invoked.- Specified by:
invoke
in interfaceorg.aopalliance.intercept.MethodInterceptor
- Parameters:
mi
- method invocation- Returns:
- the returned value of the method invoked or something else (decided here)
- Throws:
Throwable
- error
-