public abstract class AbstractPerformanceInterceptor<T> extends Object implements Serializable
Modifier and Type | Class and Description |
---|---|
protected static class |
AbstractPerformanceInterceptor.ActivationContext
This class contains the activation/deactivation logic.
|
static class |
AbstractPerformanceInterceptor.Context
The handler for cases where interception is not possible and you need to pass the "before"object to be able to monitor.
|
protected static class |
AbstractPerformanceInterceptor.SerializableMethod |
Modifier and Type | Field and Description |
---|---|
protected static ConcurrentMap<Object,AbstractPerformanceInterceptor.ActivationContext> |
CONTEXTS |
protected MonitorNameExtractor |
monitorNameExtractor |
Constructor and Description |
---|
AbstractPerformanceInterceptor() |
protected static final ConcurrentMap<Object,AbstractPerformanceInterceptor.ActivationContext> CONTEXTS
protected MonitorNameExtractor monitorNameExtractor
protected Object doInvoke(T invocation) throws Throwable
Throwable
protected AbstractPerformanceInterceptor.Context before(T invocation, String name)
protected AbstractPerformanceInterceptor.Context newContext(T invocation, AbstractPerformanceInterceptor.ActivationContext context, StopWatch stopwatch)
protected Counter.Key getKey(T invocation, String name)
protected boolean isAdaptive()
protected AbstractPerformanceInterceptor.ActivationContext getOrCreateContext(Object m)
protected AbstractPerformanceInterceptor.ActivationContext putAndGetActivationContext(Object m, AbstractPerformanceInterceptor.ActivationContext newCtx)
protected AbstractPerformanceInterceptor.ActivationContext doFindContext(T invocation)
protected Role getRole()
protected String getCounterName(Object instance, Method method)
method
- method being invokednull
, nothing will be monitoredpublic void setMonitorNameExtractor(MonitorNameExtractor monitorNameExtractor)
Copyright © 2008–2016 The Apache Software Foundation. All rights reserved.