|
||||||||||
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.master.MetricsMasterSourceImpl
@InterfaceAudience.Private public class MetricsMasterSourceImpl
Hadoop1 implementation of MetricsMasterSource. 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 | |
---|---|
MetricsMasterSourceImpl(MetricsMasterWrapper masterWrapper)
|
|
MetricsMasterSourceImpl(String metricsName,
String metricsDescription,
String metricsContext,
String metricsJmxContext,
MetricsMasterWrapper masterWrapper)
|
Method Summary | |
---|---|
void |
getMetrics(org.apache.hadoop.metrics2.MetricsBuilder metricsBuilder,
boolean all)
Method to export all the metrics. |
void |
incInfoThresholdExceeded(int count)
Increment the INFO level threshold exceeded count |
void |
incRequests(int inc)
Increment the number of requests the cluster has seen. |
void |
incWarnThresholdExceeded(int count)
Increment the WARN level threshold exceeded count |
void |
init()
Clear out the metrics and re-prepare the source. |
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. |
Methods inherited from class org.apache.hadoop.hbase.metrics.BaseSourceImpl |
---|
decGauge, getMetricsContext, getMetricsDescription, getMetricsJmxContext, getMetricsName, getMetricsRegistry, incCounters, incGauge, 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, removeMetric, setGauge, updateHistogram, updateQuantile |
Constructor Detail |
---|
public MetricsMasterSourceImpl(MetricsMasterWrapper masterWrapper)
public MetricsMasterSourceImpl(String metricsName, String metricsDescription, String metricsContext, String metricsJmxContext, MetricsMasterWrapper masterWrapper)
Method Detail |
---|
public void init()
BaseSource
init
in interface BaseSource
init
in class BaseSourceImpl
public void incRequests(int inc)
MetricsMasterSource
incRequests
in interface MetricsMasterSource
inc
- Ammount to increment the total by.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?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 |