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
View Source
- Author:
- Michael C. Han
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.
addMonitoredClass
public void addMonitoredClass(java.lang.String className)
addMonitoredMethod
public void addMonitoredMethod(java.lang.String className,
java.lang.String methodName,
java.lang.String[] parameterTypes)
throws com.liferay.portal.SystemException
- Throws:
com.liferay.portal.SystemException
afterReturning
public void afterReturning(org.aopalliance.intercept.MethodInvocation methodInvocation,
java.lang.Object result)
throws java.lang.Throwable
- Overrides:
afterReturning
in class ChainableMethodAdvice
- Throws:
java.lang.Throwable
afterThrowing
public void afterThrowing(org.aopalliance.intercept.MethodInvocation methodInvocation,
java.lang.Throwable throwable)
throws java.lang.Throwable
- Overrides:
afterThrowing
in class ChainableMethodAdvice
- Throws:
java.lang.Throwable
before
public java.lang.Object before(org.aopalliance.intercept.MethodInvocation methodInvocation)
throws java.lang.Throwable
- Overrides:
before
in class ChainableMethodAdvice
- Throws:
java.lang.Throwable
duringFinally
public void duringFinally(org.aopalliance.intercept.MethodInvocation methodInvocation)
- Overrides:
duringFinally
in class ChainableMethodAdvice
getMonitoredClasses
public java.util.Set<java.lang.String> getMonitoredClasses()
getMonitoredMethods
public java.util.Set<com.liferay.portal.kernel.util.MethodKey> getMonitoredMethods()
getMonitoringDestinationName
public java.lang.String getMonitoringDestinationName()
isActive
public boolean isActive()
isPermissiveMode
public boolean isPermissiveMode()
setActive
public void setActive(boolean active)
setMonitoredClasses
public void setMonitoredClasses(java.util.Set<java.lang.String> monitoredClasses)
setMonitoredMethods
public void setMonitoredMethods(java.util.Set<com.liferay.portal.kernel.util.MethodKey> monitoredMethods)
setMonitoringDestinationName
public void setMonitoringDestinationName(java.lang.String monitoringDestinationName)
setPermissiveMode
public void setPermissiveMode(boolean permissiveMode)
isMonitored
protected boolean isMonitored(org.aopalliance.intercept.MethodInvocation methodInvocation)