|
|
|||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||||
java.lang.Objectorg.javasimon.javaee.SimonInterceptor
public class SimonInterceptor
Simon Interceptor measuring method execution time - can be used in EJB, or CDI in general.
| Field Summary | |
|---|---|
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 Summary | |
|---|---|
SimonInterceptor()
|
|
| Method Summary | |
|---|---|
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. |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Field Detail |
|---|
public static final String DEFAULT_INTERCEPTOR_PREFIX
protected String prefix
| Constructor Detail |
|---|
public SimonInterceptor()
| Method Detail |
|---|
protected String getSimonName(javax.interceptor.InvocationContext context)
context - Invocation context
protected boolean isMonitored(javax.interceptor.InvocationContext context)
context - Method invocation context
public Object monitor(javax.interceptor.InvocationContext context)
throws Exception
context - invocation context
Exception - exception thrown from the invocation
|
|
|||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||||