org.apache.fulcrum.yaafi.interceptor.jamon
Class Jamon2PerformanceMonitorImpl

java.lang.Object
  extended by org.apache.fulcrum.yaafi.interceptor.jamon.Jamon2PerformanceMonitorImpl
All Implemented Interfaces:
JamonPerformanceMonitor

public class Jamon2PerformanceMonitorImpl
extends Object
implements JamonPerformanceMonitor

Ecapsulating the JAMon 2.x related API calls. JAMon 2.x allows for a much more powerful integration with Avalon services :

Author:
Siegfried Goeschl

Constructor Summary
Jamon2PerformanceMonitorImpl(String serviceName, Method method, Boolean isActive)
          Constructor.
 
Method Summary
 String createReport()
          Create a performance report.
 void start()
          Start the monitor.
 void stop()
          Stop the monitor
 void stop(Throwable throwable)
          Stop the monitor
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

Jamon2PerformanceMonitorImpl

public Jamon2PerformanceMonitorImpl(String serviceName,
                                    Method method,
                                    Boolean isActive)
Constructor.

Parameters:
serviceName - the service name of the service being monitored
method - the method to be monitored
isActive - is this an active monitor
Method Detail

start

public void start()
Start the monitor.

Specified by:
start in interface JamonPerformanceMonitor

stop

public void stop()
Stop the monitor

Specified by:
stop in interface JamonPerformanceMonitor

stop

public void stop(Throwable throwable)
Stop the monitor

Specified by:
stop in interface JamonPerformanceMonitor
Parameters:
throwable - the throwable

createReport

public String createReport()
                    throws Exception
Create a performance report.

Specified by:
createReport in interface JamonPerformanceMonitor
Returns:
the textual performance report
Throws:
Exception - generating the report failed


Copyright © 2004-2012 The Apache Software Foundation. All Rights Reserved.