public class Jamon2PerformanceMonitorImpl extends java.lang.Object implements JamonPerformanceMonitor
Constructor and Description |
---|
Jamon2PerformanceMonitorImpl(java.lang.String serviceName,
java.lang.reflect.Method method,
java.lang.Boolean isActive)
Constructor.
|
Modifier and Type | Method and Description |
---|---|
java.lang.String |
createReport()
Create a performance report.
|
void |
start()
Start the monitor.
|
void |
stop()
Stop the monitor
|
void |
stop(java.lang.Throwable throwable)
Stop the monitor
|
public Jamon2PerformanceMonitorImpl(java.lang.String serviceName, java.lang.reflect.Method method, java.lang.Boolean isActive)
serviceName
- the service name of the service being monitoredmethod
- the method to be monitoredisActive
- is this an active monitorpublic void start()
start
in interface JamonPerformanceMonitor
public void stop()
stop
in interface JamonPerformanceMonitor
public void stop(java.lang.Throwable throwable)
stop
in interface JamonPerformanceMonitor
throwable
- the throwablepublic java.lang.String createReport() throws java.lang.Exception
createReport
in interface JamonPerformanceMonitor
java.lang.Exception
- generating the report failedCopyright © 2000-2013 Apache Software Foundation. All Rights Reserved.