public class MethodStopwatchSource extends AbstractMethodStopwatchSource<javax.interceptor.InvocationContext>
SimonInterceptor as default stopwatch source.
Can be overridden to customize monitored EJB methods and their
related Simon name.| Modifier and Type | Field and Description |
|---|---|
static String |
DEFAULT_PREFIX
Default prefix for Simon names.
|
protected String |
prefix
Simon name prefix - can be overridden in subclasses.
|
| Constructor and Description |
|---|
MethodStopwatchSource(Manager manager) |
| Modifier and Type | Method and Description |
|---|---|
protected String |
getMonitorName(javax.interceptor.InvocationContext context)
Returns Simon name for the specified Invocation context.
|
String |
getPrefix() |
protected Class<?> |
getTargetClass(javax.interceptor.InvocationContext context)
Get target class from location.
|
protected Method |
getTargetMethod(javax.interceptor.InvocationContext context)
Get target method from location.
|
void |
setPrefix(String prefix) |
cachegetManager, getMonitor, isMonitored, startpublic static final String DEFAULT_PREFIX
public MethodStopwatchSource(Manager manager)
protected final Class<?> getTargetClass(javax.interceptor.InvocationContext context)
AbstractMethodStopwatchSourcegetTargetClass in class AbstractMethodStopwatchSource<javax.interceptor.InvocationContext>context - Locationprotected final Method getTargetMethod(javax.interceptor.InvocationContext context)
AbstractMethodStopwatchSourcegetTargetMethod in class AbstractMethodStopwatchSource<javax.interceptor.InvocationContext>context - Locationprotected String getMonitorName(javax.interceptor.InvocationContext context)
getMonitorName in class AbstractStopwatchSource<javax.interceptor.InvocationContext>context - Invocation contextCopyright © 2019. All rights reserved.