Monitored
annotation.See: Description
Class | Description |
---|---|
BasicMonitoringInterceptor |
Basic method interceptor that measures the duration of the intercepted call with a Stopwatch.
|
ManagerFactoryBean |
Factory bean which produces Simon manager.
|
MonitoredMeasuringPointcut |
Pointcut that identifies methods/classes with the
Monitored annotation. |
MonitoringInterceptor |
Method interceptor that measures the duration of the intercepted call with a Stopwatch and treats failure
cases (exceptions) separately.
|
SimonConfigurationBean |
Spring bean that configures Simon manager using
ManagerConfiguration facility. |
SimonWebConfigurationBean |
SimonConfigurationBean with extended function - just pushes configured manager to the ServletContext attribute
SimonUtils.MANAGER_SERVLET_CTX_ATTRIBUTE . |
SpringStopwatchSource |
Monitor source providing stopwatches from Spring AOP method invocation.
|
Monitored
annotation.
Usage instructions:
Step -1- Make sure the Spring configuration file org/javasimon/spring/monitoring.xml
is loaded as one
of the first configuration files.
For example, if you use the org.springframework.web.context.ContextLoaderListener
in your
web.xml
, the contextConfigLocation
context parameter will look something like this:
<context-param>
<param-name>contextConfigLocation</param-name>
<param-value>
classpath:org/javasimon/spring/monitoring.xml
classpath:context/services.xml
classpath:context/data-access-layer.xml
/WEB-INF/applicationContext.xml
</param-value>
</context-param>
Step -2- Annotate all classes and/or methods you want to monitor (see Monitored
for
more details). As step 1 configured annotation detection only for spring beans, make sure these classes are
instantiated through Spring (i.e. declare them as a bean in a Spring configuration file).
Copyright © 2019. All rights reserved.