Class Jamon2PerformanceMonitorImpl
java.lang.Object
org.apache.fulcrum.yaafi.interceptor.jamon.Jamon2PerformanceMonitorImpl
- All Implemented Interfaces:
JamonPerformanceMonitor
Encapsulating the JAMon 2.x related API calls. JAMon 2.x allows for a much
more powerful integration with Avalon services :
- custom ranges/units
- exception monitoring
- smooth web interface
- Author:
- Siegfried Goeschl
-
Constructor Summary
ConstructorsConstructorDescriptionJamon2PerformanceMonitorImpl(String serviceName, Method method, Boolean isActive) Constructor. -
Method Summary
-
Constructor Details
-
Jamon2PerformanceMonitorImpl
Constructor.- Parameters:
serviceName- the service name of the service being monitoredmethod- the method to be monitoredisActive- is this an active monitor
-
-
Method Details
-
start
public void start()Start the monitor.- Specified by:
startin interfaceJamonPerformanceMonitor
-
stop
public void stop()Stop the monitor- Specified by:
stopin interfaceJamonPerformanceMonitor
-
stop
Stop the monitor- Specified by:
stopin interfaceJamonPerformanceMonitor- Parameters:
throwable- the throwable
-
createReport
Create a performance report.- Specified by:
createReportin interfaceJamonPerformanceMonitor- Returns:
- the textual performance report
- Throws:
Exception- generating the report failed
-