com.yammer.metrics.spring
Class MeteredMethodInterceptor

java.lang.Object
  extended by com.yammer.metrics.spring.MeteredMethodInterceptor
All Implemented Interfaces:
org.aopalliance.aop.Advice, org.aopalliance.intercept.Interceptor, org.aopalliance.intercept.MethodInterceptor, org.springframework.util.ReflectionUtils.MethodCallback

public class MeteredMethodInterceptor
extends Object
implements org.aopalliance.intercept.MethodInterceptor, org.springframework.util.ReflectionUtils.MethodCallback


Field Summary
protected  Map<String,Meter> meters
           
protected  MetricsRegistry metrics
           
protected  String scope
           
protected  Class<?> targetClass
           
 
Constructor Summary
MeteredMethodInterceptor(MetricsRegistry metrics, Class<?> targetClass, String scope)
           
 
Method Summary
 void doWith(Method method)
           
 Object invoke(org.aopalliance.intercept.MethodInvocation invocation)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

metrics

protected final MetricsRegistry metrics

targetClass

protected final Class<?> targetClass

meters

protected final Map<String,Meter> meters

scope

protected final String scope
Constructor Detail

MeteredMethodInterceptor

public MeteredMethodInterceptor(MetricsRegistry metrics,
                                Class<?> targetClass,
                                String scope)
Method Detail

invoke

public Object invoke(org.aopalliance.intercept.MethodInvocation invocation)
              throws Throwable
Specified by:
invoke in interface org.aopalliance.intercept.MethodInterceptor
Throws:
Throwable

doWith

public void doWith(Method method)
            throws IllegalArgumentException,
                   IllegalAccessException
Specified by:
doWith in interface org.springframework.util.ReflectionUtils.MethodCallback
Throws:
IllegalArgumentException
IllegalAccessException


Copyright © 2012. All Rights Reserved.