Package org.apache.hadoop.hbase.thrift
Class HbaseHandlerMetricsProxy
java.lang.Object
org.apache.hadoop.hbase.thrift.HbaseHandlerMetricsProxy
- All Implemented Interfaces:
InvocationHandler
Converts a Hbase.Iface using InvocationHandler so that it reports process time of each call to
ThriftMetrics.
-
Field Summary
-
Constructor Summary
ModifierConstructorDescriptionprivate
HbaseHandlerMetricsProxy
(Object handler, ThriftMetrics metrics, org.apache.hadoop.conf.Configuration conf) -
Method Summary
Modifier and TypeMethodDescriptionstatic org.apache.hadoop.hbase.thrift.generated.Hbase.Iface
newInstance
(org.apache.hadoop.hbase.thrift.generated.Hbase.Iface handler, ThriftMetrics metrics, org.apache.hadoop.conf.Configuration conf) static org.apache.hadoop.hbase.thrift2.generated.THBaseService.Iface
newInstance
(org.apache.hadoop.hbase.thrift2.generated.THBaseService.Iface handler, ThriftMetrics metrics, org.apache.hadoop.conf.Configuration conf) private static long
now()
-
Field Details
-
handler
-
metrics
-
-
Constructor Details
-
HbaseHandlerMetricsProxy
private HbaseHandlerMetricsProxy(Object handler, ThriftMetrics metrics, org.apache.hadoop.conf.Configuration conf)
-
-
Method Details
-
newInstance
public static org.apache.hadoop.hbase.thrift.generated.Hbase.Iface newInstance(org.apache.hadoop.hbase.thrift.generated.Hbase.Iface handler, ThriftMetrics metrics, org.apache.hadoop.conf.Configuration conf) -
newInstance
public static org.apache.hadoop.hbase.thrift2.generated.THBaseService.Iface newInstance(org.apache.hadoop.hbase.thrift2.generated.THBaseService.Iface handler, ThriftMetrics metrics, org.apache.hadoop.conf.Configuration conf) -
invoke
- Specified by:
invoke
in interfaceInvocationHandler
- Throws:
Throwable
-
now
-