de.is24.util.monitoring.aop
Class InApplicationMonitorInterceptor
java.lang.Object
de.is24.util.monitoring.aop.InApplicationMonitorInterceptor
- All Implemented Interfaces:
- org.aopalliance.aop.Advice, org.aopalliance.intercept.Interceptor, org.aopalliance.intercept.MethodInterceptor
public class InApplicationMonitorInterceptor
- extends Object
- implements org.aopalliance.intercept.MethodInterceptor
This class implements a MethodInterceptor and measures the time the method invocation needs.
That value is then reported to the InApplicationMonitor. The name of the value is the full
qualified class name followed by the methods name.
If a prefix is set the prefix is put before the monitor name, e.g. prefix:monitorname
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
LOG
private static final org.apache.log4j.Logger LOG
prefix
private String prefix
handlers
MeasurementHandler[] handlers
InApplicationMonitorInterceptor
public InApplicationMonitorInterceptor()
setHandlers
public void setHandlers(MeasurementHandler[] handlers)
invoke
public Object invoke(org.aopalliance.intercept.MethodInvocation mi)
throws Throwable
-
- Specified by:
invoke in interface org.aopalliance.intercept.MethodInterceptor
- Throws:
Throwable
getMonitorName
protected String getMonitorName(org.aopalliance.intercept.MethodInvocation mi)
setPrefix
public void setPrefix(String prefix)
Copyright © 2013 Immobilien Scout GmbH. All Rights Reserved.