Klasse JavaSimonInterceptorServiceImpl

java.lang.Object
org.apache.avalon.framework.logger.AbstractLogEnabled
org.apache.fulcrum.yaafi.interceptor.baseservice.BaseInterceptorServiceImpl
org.apache.fulcrum.yaafi.interceptor.javasimon.JavaSimonInterceptorServiceImpl
Alle implementierten Schnittstellen:
Runnable, org.apache.avalon.framework.activity.Disposable, org.apache.avalon.framework.activity.Initializable, org.apache.avalon.framework.configuration.Configurable, org.apache.avalon.framework.configuration.Reconfigurable, org.apache.avalon.framework.context.Contextualizable, org.apache.avalon.framework.logger.LogEnabled, org.apache.avalon.framework.thread.ThreadSafe, AvalonInterceptorService, JavaSimonInterceptorService

public class JavaSimonInterceptorServiceImpl extends BaseInterceptorServiceImpl implements JavaSimonInterceptorService, org.apache.avalon.framework.configuration.Reconfigurable, org.apache.avalon.framework.thread.ThreadSafe, org.apache.avalon.framework.activity.Disposable, org.apache.avalon.framework.activity.Initializable
A service using JavaSimon for performance monitoring. The implementation relies on reflection to invoke JavaSimon to avoid compile-time coupling.
Seit:
1.0.7
Autor:
Siegfried Goeschl
  • Konstruktordetails

    • JavaSimonInterceptorServiceImpl

      public JavaSimonInterceptorServiceImpl()
      Constructor
  • Methodendetails

    • configure

      public void configure(org.apache.avalon.framework.configuration.Configuration configuration) throws org.apache.avalon.framework.configuration.ConfigurationException
      Angegeben von:
      configure in Schnittstelle org.apache.avalon.framework.configuration.Configurable
      Setzt außer Kraft:
      configure in Klasse BaseInterceptorServiceImpl
      Löst aus:
      org.apache.avalon.framework.configuration.ConfigurationException
      Siehe auch:
      • Configurable.configure(Configuration)
    • initialize

      public void initialize() throws Exception
      Angegeben von:
      initialize in Schnittstelle org.apache.avalon.framework.activity.Initializable
      Löst aus:
      Exception
      Siehe auch:
      • Initializable.initialize()
    • reconfigure

      public void reconfigure(org.apache.avalon.framework.configuration.Configuration configuration) throws org.apache.avalon.framework.configuration.ConfigurationException
      Angegeben von:
      reconfigure in Schnittstelle org.apache.avalon.framework.configuration.Reconfigurable
      Setzt außer Kraft:
      reconfigure in Klasse BaseInterceptorServiceImpl
      Löst aus:
      org.apache.avalon.framework.configuration.ConfigurationException
      Siehe auch:
      • Reconfigurable.reconfigure(Configuration)
    • dispose

      public void dispose()
      Angegeben von:
      dispose in Schnittstelle org.apache.avalon.framework.activity.Disposable
      Siehe auch:
      • Disposable.dispose()
    • onEntry

      public void onEntry(AvalonInterceptorContext interceptorContext)
      Beschreibung aus Schnittstelle kopiert: AvalonInterceptorService
      Called before a service method is invoked.
      Angegeben von:
      onEntry in Schnittstelle AvalonInterceptorService
      Setzt außer Kraft:
      onEntry in Klasse BaseInterceptorServiceImpl
      Parameter:
      interceptorContext - shared interceptor context
      Siehe auch:
    • onExit

      public void onExit(AvalonInterceptorContext interceptorContext, Object result)
      Beschreibung aus Schnittstelle kopiert: AvalonInterceptorService
      Called after a service method was invoked.
      Angegeben von:
      onExit in Schnittstelle AvalonInterceptorService
      Setzt außer Kraft:
      onExit in Klasse BaseInterceptorServiceImpl
      Parameter:
      interceptorContext - shared interceptor context
      result - the result of the invocation
      Siehe auch:
    • onError

      public void onError(AvalonInterceptorContext interceptorContext, Throwable t)
      Beschreibung aus Schnittstelle kopiert: AvalonInterceptorService
      Called when a service method throws an exeption
      Angegeben von:
      onError in Schnittstelle AvalonInterceptorService
      Setzt außer Kraft:
      onError in Klasse BaseInterceptorServiceImpl
      Parameter:
      interceptorContext - shared interceptor context
      t - the resulting exception
      Siehe auch:
    • run

      public void run()
      Writes the JavaSimon report to the file system.
      Angegeben von:
      run in Schnittstelle Runnable
      Siehe auch:
    • isJavaSimonAvailable

      protected final boolean isJavaSimonAvailable()
      Gibt zurück:
      Returns the isJavaSimonAvailable.
    • createJavaSimonPerformanceMonitor

      protected JavaSimonPerformanceMonitor createJavaSimonPerformanceMonitor(String serviceName, Method method, boolean isEnabled)
      Factory method for creating an implementation of a JavaSimonPerformanceMonitor.
      Parameter:
      serviceName - the service name
      method - the method
      isEnabled - is the monitor enabled
      Gibt zurück:
      the instance or null if the creation failed
    • writeReport

      protected void writeReport()
      Write a report file
    • writeReport

      protected void writeReport(File reportFile)
      Write the HTML report to the given destination.
      Parameter:
      reportFile - the report destination