public class JamonInterceptorServiceImpl extends BaseInterceptorServiceImpl implements JamonInterceptorService, org.apache.avalon.framework.configuration.Reconfigurable, org.apache.avalon.framework.thread.ThreadSafe, org.apache.avalon.framework.activity.Disposable, org.apache.avalon.framework.activity.Initializable
ON_ENTRY, ON_ERROR, ON_EXIT| Constructor and Description |
|---|
JamonInterceptorServiceImpl()
Constructor
|
| Modifier and Type | Method and Description |
|---|---|
void |
configure(org.apache.avalon.framework.configuration.Configuration configuration) |
protected JamonPerformanceMonitor |
createJamonPerformanceMonitor(java.lang.String serviceName,
java.lang.reflect.Method method,
boolean isEnabled)
Factory method for creating an implementation of a JamonPerformanceMonitor.
|
void |
dispose() |
void |
initialize() |
protected boolean |
isJamonAvailable() |
void |
onEntry(AvalonInterceptorContext interceptorContext)
Called before a service method is invoked.
|
void |
onError(AvalonInterceptorContext interceptorContext,
java.lang.Throwable t)
Called when a service method throws an exeption
|
void |
onExit(AvalonInterceptorContext interceptorContext,
java.lang.Object result)
Called after a service method was invoked.
|
void |
reconfigure(org.apache.avalon.framework.configuration.Configuration configuration) |
void |
run()
Writes the JAMON report to the file system.
|
protected void |
writeReport()
Write a report file
|
protected void |
writeReport(java.io.File reportFile)
Write the HTML report to the given destination.
|
contextualize, getClassLoader, getServiceApplicationDir, getServiceManager, getServiceName, getServiceTempDir, isEnabled, isServiceMonitored, makeAbsoluteFilepublic void configure(org.apache.avalon.framework.configuration.Configuration configuration)
throws org.apache.avalon.framework.configuration.ConfigurationException
configure in interface org.apache.avalon.framework.configuration.Configurableconfigure in class BaseInterceptorServiceImplorg.apache.avalon.framework.configuration.ConfigurationExceptionConfigurable.configure(org.apache.avalon.framework.configuration.Configuration)public void initialize()
throws java.lang.Exception
initialize in interface org.apache.avalon.framework.activity.Initializablejava.lang.ExceptionInitializable.initialize()public void reconfigure(org.apache.avalon.framework.configuration.Configuration configuration)
throws org.apache.avalon.framework.configuration.ConfigurationException
reconfigure in interface org.apache.avalon.framework.configuration.Reconfigurablereconfigure in class BaseInterceptorServiceImplorg.apache.avalon.framework.configuration.ConfigurationExceptionReconfigurable.reconfigure(org.apache.avalon.framework.configuration.Configuration)public void dispose()
dispose in interface org.apache.avalon.framework.activity.DisposableDisposable.dispose()public void onEntry(AvalonInterceptorContext interceptorContext)
AvalonInterceptorServiceonEntry in interface AvalonInterceptorServiceonEntry in class BaseInterceptorServiceImplinterceptorContext - shared interceptor contextAvalonInterceptorService.onEntry(org.apache.fulcrum.yaafi.framework.interceptor.AvalonInterceptorContext)public void onExit(AvalonInterceptorContext interceptorContext, java.lang.Object result)
AvalonInterceptorServiceonExit in interface AvalonInterceptorServiceonExit in class BaseInterceptorServiceImplinterceptorContext - shared interceptor contextresult - the result of the invocationAvalonInterceptorService.onExit(org.apache.fulcrum.yaafi.framework.interceptor.AvalonInterceptorContext, java.lang.Object)public void onError(AvalonInterceptorContext interceptorContext, java.lang.Throwable t)
AvalonInterceptorServiceonError in interface AvalonInterceptorServiceonError in class BaseInterceptorServiceImplinterceptorContext - shared interceptor contextt - the resulting exceptionAvalonInterceptorService.onError(org.apache.fulcrum.yaafi.framework.interceptor.AvalonInterceptorContext, java.lang.Throwable)public void run()
run in interface java.lang.RunnableRunnable.run()protected final boolean isJamonAvailable()
protected JamonPerformanceMonitor createJamonPerformanceMonitor(java.lang.String serviceName, java.lang.reflect.Method method, boolean isEnabled)
serviceName - the service namemethod - the methodisEnabled - is the monitor enabledprotected void writeReport()
protected void writeReport(java.io.File reportFile)
reportFile - the report destinationCopyright © 2000-2013 Apache Software Foundation. All Rights Reserved.