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

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

public class Jamon1PerformanceMonitorImpl
extends Object
implements JamonPerformanceMonitor

Ecapsulating the JAMon 1.x related API calls

Author:
Siegfried Goeschl

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

Constructor Detail

Jamon1PerformanceMonitorImpl

public Jamon1PerformanceMonitorImpl(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()
Start the monitor.

Specified by:
stop in interface JamonPerformanceMonitor

stop

public void stop(Throwable throwable)
Stop the monitor based on an Throwable.

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.