|
||||||||||
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 |
Fields inherited from interface org.apache.hadoop.hbase.metrics.JvmPauseMonitorSource |
---|
INFO_THRESHOLD_COUNT_DESC, INFO_THRESHOLD_COUNT_KEY, PAUSE_TIME_WITH_GC_DESC, PAUSE_TIME_WITH_GC_KEY, PAUSE_TIME_WITHOUT_GC_DESC, PAUSE_TIME_WITHOUT_GC_KEY, WARN_THRESHOLD_COUNT_DESC, WARN_THRESHOLD_COUNT_KEY |
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 |
incInfoThresholdExceeded(int count)
Increment the INFO level threshold exceeded count |
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 |
incrSplitRequest()
Increment number of a requested splits |
void |
incrSplitSuccess()
Increment number of successful splits |
void |
incWarnThresholdExceeded(int count)
Increment the WARN level threshold exceeded count |
void |
updateAppend(long t)
Update the Append time histogram. |
void |
updateDelete(long t)
Update the Delete time histogram |
void |
updateFlushTime(long t)
Update the flush time histogram |
void |
updateGet(long t)
Update the Get time histogram . |
void |
updateIncrement(long t)
Update the Increment time histogram. |
void |
updatePauseTimeWithGc(long t)
Update the pause time histogram where GC activity was detected. |
void |
updatePauseTimeWithoutGc(long t)
Update the pause time histogram where GC activity was not detected. |
void |
updatePut(long t)
Update the Put time histogram |
void |
updateReplay(long t)
Update the Replay time histogram. |
void |
updateScannerNext(long scanSize)
Update the scan size. |
void |
updateSplitTime(long t)
Update the split transaction 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 updateScannerNext(long scanSize)
MetricsRegionServerSource
updateScannerNext
in interface MetricsRegionServerSource
scanSize
- size of the scanpublic 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 incrSplitRequest()
MetricsRegionServerSource
incrSplitRequest
in interface MetricsRegionServerSource
public void incrSplitSuccess()
MetricsRegionServerSource
incrSplitSuccess
in interface MetricsRegionServerSource
public void updateSplitTime(long t)
MetricsRegionServerSource
updateSplitTime
in interface MetricsRegionServerSource
t
- time it took, in millisecondspublic void updateFlushTime(long t)
MetricsRegionServerSource
updateFlushTime
in interface MetricsRegionServerSource
t
- time it took, in millisecondspublic 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?public void incInfoThresholdExceeded(int count)
JvmPauseMonitorSource
incInfoThresholdExceeded
in interface JvmPauseMonitorSource
count
- the countpublic void incWarnThresholdExceeded(int count)
JvmPauseMonitorSource
incWarnThresholdExceeded
in interface JvmPauseMonitorSource
count
- the countpublic void updatePauseTimeWithGc(long t)
JvmPauseMonitorSource
updatePauseTimeWithGc
in interface JvmPauseMonitorSource
t
- time it tookpublic void updatePauseTimeWithoutGc(long t)
JvmPauseMonitorSource
updatePauseTimeWithoutGc
in interface JvmPauseMonitorSource
t
- time it took
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |