public class SimonInterceptor extends Object
Modifier and Type | Field and Description |
---|---|
static String |
DEFAULT_INTERCEPTOR_PREFIX
Default prefix for interceptor Simons if no "prefix" init parameter is used.
|
protected String |
prefix
Simon name prefix - can be overridden in subclasses.
|
Constructor and Description |
---|
SimonInterceptor() |
Modifier and Type | Method and Description |
---|---|
protected String |
getSimonName(javax.interceptor.InvocationContext context)
Returns Simon name for the specified Invocation context.
|
protected boolean |
isMonitored(javax.interceptor.InvocationContext context)
Indicates whether the method invocation should be monitored.
|
Object |
monitor(javax.interceptor.InvocationContext context)
Around invoke method that measures the split for one method invocation.
|
public static final String DEFAULT_INTERCEPTOR_PREFIX
public SimonInterceptor()
protected String getSimonName(javax.interceptor.InvocationContext context)
context
- Invocation contextprotected boolean isMonitored(javax.interceptor.InvocationContext context)
context
- Method invocation contextpublic Object monitor(javax.interceptor.InvocationContext context) throws Exception
context
- invocation contextException
- exception thrown from the invocationCopyright © 2019. All rights reserved.