|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectorg.jboss.ejb.plugins.AbstractInterceptor
org.jboss.ejb.plugins.MetricsInterceptor
public class MetricsInterceptor
MetricsInterceptor collects data from the bean invocation call and publishes them on a JMS topic (bound to topic/metrics in the name service).
| Field Summary |
|---|
| Fields inherited from class org.jboss.ejb.plugins.AbstractInterceptor |
|---|
container, log, nextInterceptor |
| Fields inherited from interface org.jboss.monitor.MetricsConstants |
|---|
ACTIVITY, APPLICATION, BEAN, BEANCACHE_METRICS, CHECKPOINT, INVOCATION_METRICS, MEMORY_MONITOR, METHOD, PRIMARY_KEY, SYSTEM_METRICS, THREAD_MONITOR, TIME, TYPE |
| Constructor Summary | |
|---|---|
MetricsInterceptor()
|
|
| Method Summary | |
|---|---|
void |
create()
Starts the JMS publisher thread. |
void |
destroy()
Kills the publisher thread. |
Object |
invoke(Invocation mi)
??? |
Object |
invokeHome(Invocation mi)
??? |
void |
resetStatistic()
|
Map |
retrieveStatistic()
|
void |
sample(Object s)
|
void |
setContainer(Container container)
Stores the container reference and the application and bean JNDI names. |
| Methods inherited from class org.jboss.ejb.plugins.AbstractInterceptor |
|---|
getContainer, getNext, setNext, start, stop |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
|---|
public MetricsInterceptor()
| Method Detail |
|---|
public void setContainer(Container container)
setContainer in interface ContainerPluginsetContainer in class AbstractInterceptorcontainer - set by the container initialization code
public Object invokeHome(Invocation mi)
throws Exception
Interceptor
invokeHome in interface InterceptorinvokeHome in class AbstractInterceptormi - ???
Exception - ???
public Object invoke(Invocation mi)
throws Exception
Interceptor
invoke in interface Interceptorinvoke in class AbstractInterceptormi - ???
Exception - ???public void create()
create in interface org.jboss.system.Servicecreate in class AbstractInterceptorpublic void destroy()
destroy in interface org.jboss.system.Servicedestroy in class AbstractInterceptorpublic void sample(Object s)
public Map retrieveStatistic()
public void resetStatistic()
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||