org.apache.hadoop.hbase.client.metrics
Class ScanMetrics

java.lang.Object
  extended by org.apache.hadoop.hbase.client.metrics.ScanMetrics
All Implemented Interfaces:
org.apache.hadoop.io.Writable

public class ScanMetrics
extends Object
implements org.apache.hadoop.io.Writable

Provides client-side metrics related to scan operations The data can be passed to mapreduce framework or other systems. Currently metrics framework won't be able to support the scenario where multiple scan instances run on the same machine trying to update the same metric. We use metrics objects in the class, so that it can be easily switched to metrics framework later when it support this scenario. Some of these metrics are general for any client operation such as put However, there is no need for this. So they are defined under scan operation for now.


Field Summary
 org.apache.hadoop.metrics.util.MetricsTimeVaryingLong countOfBytesInRemoteResults
          number of bytes in Result objects from remote region servers
 org.apache.hadoop.metrics.util.MetricsTimeVaryingLong countOfBytesInResults
          number of bytes in Result objects from region servers
 org.apache.hadoop.metrics.util.MetricsTimeVaryingLong countOfNSRE
          number of NotServingRegionException caught
 org.apache.hadoop.metrics.util.MetricsTimeVaryingLong countOfRegions
          number of regions
 org.apache.hadoop.metrics.util.MetricsTimeVaryingLong countOfRemoteRPCcalls
          number of remote RPC calls
 org.apache.hadoop.metrics.util.MetricsTimeVaryingLong countOfRemoteRPCRetries
          number of remote RPC retries
 org.apache.hadoop.metrics.util.MetricsTimeVaryingLong countOfRPCcalls
          number of RPC calls
 org.apache.hadoop.metrics.util.MetricsTimeVaryingLong countOfRPCRetries
          number of RPC retries
 org.apache.hadoop.metrics.util.MetricsTimeVaryingLong sumOfMillisSecBetweenNexts
          sum of milliseconds between sequential next calls
 
Constructor Summary
ScanMetrics()
          constructor
 
Method Summary
 org.apache.hadoop.metrics.util.MetricsTimeVaryingLong[] getMetricsTimeVaryingLongArray()
           
 void readFields(DataInput in)
           
 void write(DataOutput out)
          serialize all the MetricsTimeVaryingLong
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

countOfRPCcalls

public final org.apache.hadoop.metrics.util.MetricsTimeVaryingLong countOfRPCcalls
number of RPC calls


countOfRemoteRPCcalls

public final org.apache.hadoop.metrics.util.MetricsTimeVaryingLong countOfRemoteRPCcalls
number of remote RPC calls


sumOfMillisSecBetweenNexts

public final org.apache.hadoop.metrics.util.MetricsTimeVaryingLong sumOfMillisSecBetweenNexts
sum of milliseconds between sequential next calls


countOfNSRE

public final org.apache.hadoop.metrics.util.MetricsTimeVaryingLong countOfNSRE
number of NotServingRegionException caught


countOfBytesInResults

public final org.apache.hadoop.metrics.util.MetricsTimeVaryingLong countOfBytesInResults
number of bytes in Result objects from region servers


countOfBytesInRemoteResults

public final org.apache.hadoop.metrics.util.MetricsTimeVaryingLong countOfBytesInRemoteResults
number of bytes in Result objects from remote region servers


countOfRegions

public final org.apache.hadoop.metrics.util.MetricsTimeVaryingLong countOfRegions
number of regions


countOfRPCRetries

public final org.apache.hadoop.metrics.util.MetricsTimeVaryingLong countOfRPCRetries
number of RPC retries


countOfRemoteRPCRetries

public final org.apache.hadoop.metrics.util.MetricsTimeVaryingLong countOfRemoteRPCRetries
number of remote RPC retries

Constructor Detail

ScanMetrics

public ScanMetrics()
constructor

Method Detail

write

public void write(DataOutput out)
           throws IOException
serialize all the MetricsTimeVaryingLong

Specified by:
write in interface org.apache.hadoop.io.Writable
Throws:
IOException

readFields

public void readFields(DataInput in)
                throws IOException
Specified by:
readFields in interface org.apache.hadoop.io.Writable
Throws:
IOException

getMetricsTimeVaryingLongArray

public org.apache.hadoop.metrics.util.MetricsTimeVaryingLong[] getMetricsTimeVaryingLongArray()


Copyright © 2015 The Apache Software Foundation. All Rights Reserved.