|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectorg.apache.hadoop.hbase.client.metrics.ScanMetrics
@InterfaceAudience.Public @InterfaceStability.Evolving public class ScanMetrics
Provides client-side metrics related to scan operations The data can be passed to mapreduce framework or other systems. We use atomic longs so that one thread can increment, while another atomically resets to zero after the values are reported to hadoop's counters. 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 | |
---|---|
AtomicLong |
countOfBytesInRemoteResults
number of bytes in Result objects from remote region servers |
AtomicLong |
countOfBytesInResults
number of bytes in Result objects from region servers |
AtomicLong |
countOfNSRE
number of NotServingRegionException caught |
AtomicLong |
countOfRegions
number of regions |
AtomicLong |
countOfRemoteRPCcalls
number of remote RPC calls |
AtomicLong |
countOfRemoteRPCRetries
number of remote RPC retries |
AtomicLong |
countOfRPCcalls
number of RPC calls |
AtomicLong |
countOfRPCRetries
number of RPC retries |
AtomicLong |
sumOfMillisSecBetweenNexts
sum of milliseconds between sequential next calls |
Constructor Summary | |
---|---|
ScanMetrics()
constructor |
Method Summary | |
---|---|
Map<String,Long> |
getMetricsMap()
Get all of the values since the last time this function was called. |
void |
setCounter(String counterName,
long value)
|
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Field Detail |
---|
public final AtomicLong countOfRPCcalls
public final AtomicLong countOfRemoteRPCcalls
public final AtomicLong sumOfMillisSecBetweenNexts
public final AtomicLong countOfNSRE
public final AtomicLong countOfBytesInResults
public final AtomicLong countOfBytesInRemoteResults
public final AtomicLong countOfRegions
public final AtomicLong countOfRPCRetries
public final AtomicLong countOfRemoteRPCRetries
Constructor Detail |
---|
public ScanMetrics()
Method Detail |
---|
public void setCounter(String counterName, long value)
public Map<String,Long> getMetricsMap()
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |