View Javadoc

1   package org.apache.fulcrum.yaafi.interceptor.jamon;
2   
3   /**
4    * Expose the start()/stop() methods for performance monitors independent from their concrete
5    * implementation.
6    *
7    * @author <a href="mailto:siegfried.goeschl@it20one.at">Siegfried Goeschl</a>
8    */
9   
10  public interface JamonPerformanceMonitor
11  {
12      /** Start the monitor. */
13      public void start();
14  
15      /** Stop the monitor. */
16      public void stop();
17  
18      /**
19       * Stop the monitor based on an Throwable.
20       * @param throwable the throwable
21       */
22      public void stop(Throwable throwable);
23  
24      /**
25       * Create a performance report
26       * @return the textual performance report
27       * @throws Exception generating the report failed
28       */
29      public String createReport() throws Exception;
30  }