open class JamonPerformanceMonitorInterceptor : AbstractMonitoringInterceptor
Performance monitor interceptor that uses JAMon library to perform the performance measurement on the intercepted method and output the stats. In addition, it tracks/counts exceptions thrown by the intercepted method. The stack traces can be viewed in the JAMon web application.
This code is inspired by Thierry Templier's blog.
Author
Dmitriy Kopylenko
Author
Juergen Hoeller
Author
Rob Harrop
Author
Steve Souza
Since
1.1.3
See Also
com.jamonapi.MonitorFactoryPerformanceMonitorInterceptor
JamonPerformanceMonitorInterceptor()
Create a new JamonPerformanceMonitorInterceptor with a static logger. JamonPerformanceMonitorInterceptor(useDynamicLogger: Boolean) JamonPerformanceMonitorInterceptor(useDynamicLogger: Boolean, trackAllInvocations: Boolean)
Create a new JamonPerformanceMonitorInterceptor with a dynamic or static logger, according to the given flag. |
open fun setTrackAllInvocations(trackAllInvocations: Boolean): Unit
Set whether to track all invocations that go through this interceptor, or just invocations with trace logging enabled. Default is "false": Only invocations with trace logging enabled will be monitored. Specify "true" to let JAMon track all invocations, gathering statistics even when trace logging is disabled. |