org.apache.hadoop.hbase.thrift
Class HbaseHandlerMetricsProxy

java.lang.Object
  extended by org.apache.hadoop.hbase.thrift.HbaseHandlerMetricsProxy
All Implemented Interfaces:
InvocationHandler

@InterfaceAudience.Private
public class HbaseHandlerMetricsProxy
extends Object
implements InvocationHandler

Converts a Hbase.Iface using InvocationHandler so that it reports process time of each call to ThriftMetrics.


Field Summary
static org.apache.commons.logging.Log LOG
           
 
Method Summary
 Object invoke(Object proxy, Method m, Object[] args)
           
static Hbase.Iface newInstance(Hbase.Iface handler, ThriftMetrics metrics, org.apache.hadoop.conf.Configuration conf)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

LOG

public static final org.apache.commons.logging.Log LOG
Method Detail

newInstance

public static Hbase.Iface newInstance(Hbase.Iface handler,
                                      ThriftMetrics metrics,
                                      org.apache.hadoop.conf.Configuration conf)

invoke

public Object invoke(Object proxy,
                     Method m,
                     Object[] args)
              throws Throwable
Specified by:
invoke in interface InvocationHandler
Throws:
Throwable


Copyright © 2015 The Apache Software Foundation. All rights reserved.