org.apache.openejb.monitoring
Class StatsInterceptor

java.lang.Object
  extended by org.apache.openejb.monitoring.StatsInterceptor

public class StatsInterceptor
extends java.lang.Object

Version:
$Rev$ $Date$

Nested Class Summary
 class StatsInterceptor.Stats
           
 
Field Summary
static InterceptorData metadata
           
 
Constructor Summary
StatsInterceptor(java.lang.Class<?> componentClass)
           
 
Method Summary
 java.lang.reflect.Method AfterBegin()
           
 void AfterBegin(javax.interceptor.InvocationContext invocationContext)
           
 java.lang.reflect.Method AfterCompletion()
           
 void AfterCompletion(javax.interceptor.InvocationContext invocationContext)
           
 java.lang.reflect.Method BeforeCompletion()
           
 void BeforeCompletion(javax.interceptor.InvocationContext invocationContext)
           
 long getInvocationCount()
           
 long getInvocationTime()
           
 long getMonitoredMethods()
           
 java.lang.Object invoke(javax.interceptor.InvocationContext invocationContext)
           
 boolean isMonitoringEnabled()
           
 java.lang.reflect.Method PostActivate()
           
 void PostActivate(javax.interceptor.InvocationContext invocationContext)
           
 java.lang.reflect.Method PostConstruct()
           
 void PostConstruct(javax.interceptor.InvocationContext invocationContext)
           
 java.lang.reflect.Method PreDestroy()
           
 void PreDestroy(javax.interceptor.InvocationContext invocationContext)
           
 java.lang.reflect.Method PrePassivate()
           
 void PrePassivate(javax.interceptor.InvocationContext invocationContext)
           
 java.util.Collection<StatsInterceptor.Stats> stats()
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

metadata

public static final InterceptorData metadata
Constructor Detail

StatsInterceptor

public StatsInterceptor(java.lang.Class<?> componentClass)
Method Detail

isMonitoringEnabled

public boolean isMonitoringEnabled()

getInvocationCount

public long getInvocationCount()

getInvocationTime

public long getInvocationTime()

getMonitoredMethods

public long getMonitoredMethods()

stats

public java.util.Collection<StatsInterceptor.Stats> stats()

invoke

public java.lang.Object invoke(javax.interceptor.InvocationContext invocationContext)
                        throws java.lang.Exception
Throws:
java.lang.Exception

PostConstruct

public java.lang.reflect.Method PostConstruct()
                                       throws java.lang.NoSuchMethodException
Throws:
java.lang.NoSuchMethodException

PostConstruct

@PostConstruct
public void PostConstruct(javax.interceptor.InvocationContext invocationContext)
                   throws java.lang.Exception
Throws:
java.lang.Exception

PreDestroy

public java.lang.reflect.Method PreDestroy()
                                    throws java.lang.NoSuchMethodException
Throws:
java.lang.NoSuchMethodException

PreDestroy

@PreDestroy
public void PreDestroy(javax.interceptor.InvocationContext invocationContext)
                throws java.lang.Exception
Throws:
java.lang.Exception

PostActivate

public java.lang.reflect.Method PostActivate()
                                      throws java.lang.NoSuchMethodException
Throws:
java.lang.NoSuchMethodException

PostActivate

public void PostActivate(javax.interceptor.InvocationContext invocationContext)
                  throws java.lang.Exception
Throws:
java.lang.Exception

PrePassivate

public java.lang.reflect.Method PrePassivate()
                                      throws java.lang.NoSuchMethodException
Throws:
java.lang.NoSuchMethodException

PrePassivate

public void PrePassivate(javax.interceptor.InvocationContext invocationContext)
                  throws java.lang.Exception
Throws:
java.lang.Exception

AfterBegin

public java.lang.reflect.Method AfterBegin()
                                    throws java.lang.NoSuchMethodException
Throws:
java.lang.NoSuchMethodException

AfterBegin

public void AfterBegin(javax.interceptor.InvocationContext invocationContext)
                throws java.lang.Exception
Throws:
java.lang.Exception

BeforeCompletion

public java.lang.reflect.Method BeforeCompletion()
                                          throws java.lang.NoSuchMethodException
Throws:
java.lang.NoSuchMethodException

BeforeCompletion

public void BeforeCompletion(javax.interceptor.InvocationContext invocationContext)
                      throws java.lang.Exception
Throws:
java.lang.Exception

AfterCompletion

public java.lang.reflect.Method AfterCompletion()
                                         throws java.lang.NoSuchMethodException
Throws:
java.lang.NoSuchMethodException

AfterCompletion

public void AfterCompletion(javax.interceptor.InvocationContext invocationContext)
                     throws java.lang.Exception
Throws:
java.lang.Exception


Copyright © 1999-2011 The Apache OpenEJB development community. All Rights Reserved.