com.liferay.portal.monitoring.statistics.service
Class ServiceMonitorAdvice
java.lang.Object
com.liferay.portal.spring.aop.ChainableMethodAdvice
com.liferay.portal.monitoring.statistics.service.ServiceMonitorAdvice
- All Implemented Interfaces:
- org.aopalliance.aop.Advice, org.aopalliance.intercept.Interceptor, org.aopalliance.intercept.MethodInterceptor
public class ServiceMonitorAdvice
- extends ChainableMethodAdvice
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
ServiceMonitorAdvice
public ServiceMonitorAdvice()
getInstance
public static ServiceMonitorAdvice getInstance()
- Deprecated. As of 6.1.0
isActive
public static boolean isActive()
addMonitoredClass
public void addMonitoredClass(String className)
addMonitoredMethod
public void addMonitoredMethod(String className,
String methodName,
String[] parameterTypes)
afterReturning
public void afterReturning(org.aopalliance.intercept.MethodInvocation methodInvocation,
Object result)
throws Throwable
- Overrides:
afterReturning
in class ChainableMethodAdvice
- Throws:
Throwable
afterThrowing
public void afterThrowing(org.aopalliance.intercept.MethodInvocation methodInvocation,
Throwable throwable)
throws Throwable
- Overrides:
afterThrowing
in class ChainableMethodAdvice
- Throws:
Throwable
before
public Object before(org.aopalliance.intercept.MethodInvocation methodInvocation)
throws Throwable
- Overrides:
before
in class ChainableMethodAdvice
- Throws:
Throwable
duringFinally
public void duringFinally(org.aopalliance.intercept.MethodInvocation methodInvocation)
- Overrides:
duringFinally
in class ChainableMethodAdvice
getMonitoredClasses
public Set<String> getMonitoredClasses()
getMonitoredMethods
public Set<MethodSignature> getMonitoredMethods()
isPermissiveMode
public boolean isPermissiveMode()
setActive
public void setActive(boolean active)
setMonitoredClasses
public void setMonitoredClasses(Set<String> monitoredClasses)
setMonitoredMethods
public void setMonitoredMethods(Set<MethodSignature> monitoredMethods)
setMonitoringDestinationName
public void setMonitoringDestinationName(String monitoringDestinationName)
- Deprecated. As of 6.2.0
setPermissiveMode
public void setPermissiveMode(boolean permissiveMode)
isMonitored
protected boolean isMonitored(org.aopalliance.intercept.MethodInvocation methodInvocation)