public class InApplicationMonitorInterceptor extends Object implements org.aopalliance.intercept.MethodInterceptor
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| Modifier and Type | Field and Description |
|---|---|
(package private) MeasurementHandler[] |
handlers |
private static org.apache.log4j.Logger |
LOG |
private String |
prefix |
| Constructor and Description |
|---|
InApplicationMonitorInterceptor() |
| Modifier and Type | Method and Description |
|---|---|
protected String |
getMonitorName(org.aopalliance.intercept.MethodInvocation mi) |
Object |
invoke(org.aopalliance.intercept.MethodInvocation mi) |
void |
setHandlers(MeasurementHandler[] handlers) |
void |
setPrefix(String prefix) |
private static final org.apache.log4j.Logger LOG
private String prefix
MeasurementHandler[] handlers
public void setHandlers(MeasurementHandler[] handlers)
public Object invoke(org.aopalliance.intercept.MethodInvocation mi) throws Throwable
invoke in interface org.aopalliance.intercept.MethodInterceptorThrowableprotected String getMonitorName(org.aopalliance.intercept.MethodInvocation mi)
public void setPrefix(String prefix)
Copyright © 2013 Immobilien Scout GmbH. All Rights Reserved.