public class MonitoringInterceptor extends BasicMonitoringInterceptor
EXCEPTION_TAG),
but setting| Modifier and Type | Field and Description |
|---|---|
static String |
EXCEPTION_TAG |
| Constructor and Description |
|---|
MonitoringInterceptor()
Default constructor using
SimonManager.manager. |
MonitoringInterceptor(Manager manager)
Constructor with specified
Manager. |
MonitoringInterceptor(StopwatchSource<org.aopalliance.intercept.MethodInvocation> stopwatchSource)
Constructor with specified
MonitorSource. |
| Modifier and Type | Method and Description |
|---|---|
protected Object |
processInvoke(org.aopalliance.intercept.MethodInvocation invocation,
Split split)
Method stops the split
|
void |
setTagByExceptionType(boolean tagByExceptionType)
Sets whether all exceptions should report to
EXCEPTION_TAG sub-simon or sub-simon for each
exception type should be introduced (based on exception's simple name). |
invokepublic static final String EXCEPTION_TAG
public MonitoringInterceptor(StopwatchSource<org.aopalliance.intercept.MethodInvocation> stopwatchSource)
MonitorSource.stopwatchSource - stopwatch provider for method invocationpublic MonitoringInterceptor(Manager manager)
Manager.public MonitoringInterceptor()
SimonManager.manager.public void setTagByExceptionType(boolean tagByExceptionType)
EXCEPTION_TAG sub-simon or sub-simon for each
exception type should be introduced (based on exception's simple name).tagByExceptionType - true for fine grained exception-class-name-based sub-simonsprotected Object processInvoke(org.aopalliance.intercept.MethodInvocation invocation, Split split) throws Throwable
processInvoke in class BasicMonitoringInterceptorinvocation - method invocationsplit - running split for this monitored actionThrowableCopyright © 2019. All rights reserved.