|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectorg.apache.hadoop.hbase.metrics.BaseSourceImpl
org.apache.hadoop.hbase.regionserver.MetricsRegionServerSourceImpl
public class MetricsRegionServerSourceImpl
Hadoop1 implementation of MetricsRegionServerSource. Implements BaseSource through BaseSourceImpl, following the pattern
Field Summary |
---|
Fields inherited from class org.apache.hadoop.hbase.metrics.BaseSourceImpl |
---|
metricsContext, metricsDescription, metricsJmxContext, metricsName, metricsRegistry |
Fields inherited from interface org.apache.hadoop.hbase.metrics.BaseSource |
---|
HBASE_METRICS_SYSTEM_NAME |
Constructor Summary | |
---|---|
MetricsRegionServerSourceImpl(MetricsRegionServerWrapper rsWrap)
|
|
MetricsRegionServerSourceImpl(String metricsName,
String metricsDescription,
String metricsContext,
String metricsJmxContext,
MetricsRegionServerWrapper rsWrap)
|
Method Summary | |
---|---|
void |
getMetrics(org.apache.hadoop.metrics2.MetricsBuilder metricsBuilder,
boolean all)
Yes this is a get function that doesn't return anything. |
void |
incrSlowAppend()
Increment the number of slow Appends that have happened. |
void |
incrSlowDelete()
Increment the number of slow Deletes that have happened. |
void |
incrSlowGet()
Increment the number of slow Gets that have happened. |
void |
incrSlowIncrement()
Increment the number of slow Increments that have happened. |
void |
incrSlowPut()
Increment the number of slow Puts that have happened. |
void |
updateAppend(long t)
Update the Append time histogram. |
void |
updateDelete(long t)
Update the Delete time histogram |
void |
updateGet(long t)
Update the Get time histogram . |
void |
updateIncrement(long t)
Update the Increment time histogram. |
void |
updatePut(long t)
Update the Put time histogram |
void |
updateReplay(long t)
Update the Replay time histogram. |
Methods inherited from class org.apache.hadoop.hbase.metrics.BaseSourceImpl |
---|
decGauge, getMetricsContext, getMetricsDescription, getMetricsJmxContext, getMetricsName, getMetricsRegistry, incCounters, incGauge, init, removeMetric, setGauge, updateHistogram, updateQuantile |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Methods inherited from interface org.apache.hadoop.hbase.metrics.BaseSource |
---|
decGauge, getMetricsContext, getMetricsDescription, getMetricsJmxContext, getMetricsName, incCounters, incGauge, init, removeMetric, setGauge, updateHistogram, updateQuantile |
Constructor Detail |
---|
public MetricsRegionServerSourceImpl(MetricsRegionServerWrapper rsWrap)
public MetricsRegionServerSourceImpl(String metricsName, String metricsDescription, String metricsContext, String metricsJmxContext, MetricsRegionServerWrapper rsWrap)
Method Detail |
---|
public void updatePut(long t)
MetricsRegionServerSource
updatePut
in interface MetricsRegionServerSource
t
- time it tookpublic void updateDelete(long t)
MetricsRegionServerSource
updateDelete
in interface MetricsRegionServerSource
t
- time it tookpublic void updateGet(long t)
MetricsRegionServerSource
updateGet
in interface MetricsRegionServerSource
t
- time it tookpublic void updateIncrement(long t)
MetricsRegionServerSource
updateIncrement
in interface MetricsRegionServerSource
t
- time it tookpublic void updateAppend(long t)
MetricsRegionServerSource
updateAppend
in interface MetricsRegionServerSource
t
- time it tookpublic void updateReplay(long t)
MetricsRegionServerSource
updateReplay
in interface MetricsRegionServerSource
t
- time it tookpublic void incrSlowPut()
MetricsRegionServerSource
incrSlowPut
in interface MetricsRegionServerSource
public void incrSlowDelete()
MetricsRegionServerSource
incrSlowDelete
in interface MetricsRegionServerSource
public void incrSlowGet()
MetricsRegionServerSource
incrSlowGet
in interface MetricsRegionServerSource
public void incrSlowIncrement()
MetricsRegionServerSource
incrSlowIncrement
in interface MetricsRegionServerSource
public void incrSlowAppend()
MetricsRegionServerSource
incrSlowAppend
in interface MetricsRegionServerSource
public void getMetrics(org.apache.hadoop.metrics2.MetricsBuilder metricsBuilder, boolean all)
getMetrics
in interface org.apache.hadoop.metrics2.MetricsSource
getMetrics
in class BaseSourceImpl
metricsBuilder
- Builder to accept metricsall
- push all or only changed?
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |