|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectorg.javasimon.spring.BasicMonitoringInterceptor
org.javasimon.spring.MonitoringInterceptor
public class MonitoringInterceptor
Method interceptor that measures the duration of the intercepted call with a Stopwatch and treats failure
cases (exceptions) separately. By default exceptional flow reports to "stopwatch.failed" (EXCEPTION_TAG),
but setting
| Field Summary | |
|---|---|
static String |
EXCEPTION_TAG
|
private boolean |
tagByExceptionType
|
| Constructor Summary | |
|---|---|
MonitoringInterceptor()
Default constructor using SimonManager.manager. |
|
MonitoringInterceptor(Manager manager)
Constructor with specified Manager. |
|
MonitoringInterceptor(StopwatchSource<org.aopalliance.intercept.MethodInvocation> stopwatchSource)
Constructor with specified MonitorSource. |
|
| Method Summary | |
|---|---|
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). |
| Methods inherited from class org.javasimon.spring.BasicMonitoringInterceptor |
|---|
invoke |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Field Detail |
|---|
public static final String EXCEPTION_TAG
private boolean tagByExceptionType
| Constructor Detail |
|---|
public MonitoringInterceptor(StopwatchSource<org.aopalliance.intercept.MethodInvocation> stopwatchSource)
MonitorSource.
stopwatchSource - stopwatch provider for method invocationpublic MonitoringInterceptor(Manager manager)
Manager.
public MonitoringInterceptor()
SimonManager.manager.
| Method Detail |
|---|
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-simons
protected Object processInvoke(org.aopalliance.intercept.MethodInvocation invocation,
Split split)
throws Throwable
processInvoke in class BasicMonitoringInterceptorinvocation - method invocationsplit - running split for this monitored action
Throwable
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||