public class BasicMonitoringInterceptor extends Object implements org.aopalliance.intercept.MethodInterceptor, Serializable
processInvoke(org.aopalliance.intercept.MethodInvocation, org.javasimon.Split)
method.Constructor and Description |
---|
BasicMonitoringInterceptor()
Default constructor using
SimonManager.manager . |
BasicMonitoringInterceptor(Manager manager)
Constructor with specified
Manager . |
BasicMonitoringInterceptor(StopwatchSource<org.aopalliance.intercept.MethodInvocation> stopwatchSource)
Constructor with specified
MonitorSource . |
Modifier and Type | Method and Description |
---|---|
Object |
invoke(org.aopalliance.intercept.MethodInvocation invocation)
Performs method invocation and wraps it with Stopwatch.
|
protected Object |
processInvoke(org.aopalliance.intercept.MethodInvocation invocation,
Split split)
Method with default invoke (just calls proceed).
|
public BasicMonitoringInterceptor(StopwatchSource<org.aopalliance.intercept.MethodInvocation> stopwatchSource)
MonitorSource
.stopwatchSource
- stopwatch provider for method invocationpublic BasicMonitoringInterceptor(Manager manager)
Manager
.public BasicMonitoringInterceptor()
SimonManager.manager
.public final Object invoke(org.aopalliance.intercept.MethodInvocation invocation) throws Throwable
invoke
in interface org.aopalliance.intercept.MethodInterceptor
invocation
- method invocationThrowable
- anything thrown by the methodprotected Object processInvoke(org.aopalliance.intercept.MethodInvocation invocation, Split split) throws Throwable
invocation.proceed()
.invocation
- method invocationsplit
- running split for this monitored actionThrowable
Copyright © 2019. All rights reserved.