|
||||||||||
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
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 |
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 |
incRequests(int inc)
Increment the number of requests the cluster has seen. |
void |
init()
Clear out the metrics and re-prepare the source. |
void |
setRIT(int ritCount)
Set the number of regions in transition. |
void |
setRITCountOverThreshold(int ritCount)
Set the count of the number of regions that have been in transition over the threshold time. |
void |
setRITOldestAge(long ritCount)
Set the oldest region in transition. |
void |
updateMetaWALSplitSize(long size)
|
void |
updateMetaWALSplitTime(long time)
|
void |
updateSnapshotCloneTime(long time)
|
void |
updateSnapshotRestoreTime(long time)
|
void |
updateSnapshotTime(long time)
|
void |
updateSplitSize(long size)
|
void |
updateSplitTime(long time)
|
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 setRIT(int ritCount)
MetricsMasterSource
setRIT
in interface MetricsMasterSource
ritCount
- count of the regions in transition.public void setRITCountOverThreshold(int ritCount)
MetricsMasterSource
setRITCountOverThreshold
in interface MetricsMasterSource
ritCount
- number of regions in transition for longer than threshold.public void setRITOldestAge(long ritCount)
MetricsMasterSource
setRITOldestAge
in interface MetricsMasterSource
ritCount
- age of the oldest RIT.public void updateSplitTime(long time)
updateSplitTime
in interface MetricsMasterSource
public void updateSplitSize(long size)
updateSplitSize
in interface MetricsMasterSource
public void updateSnapshotTime(long time)
updateSnapshotTime
in interface MetricsMasterSource
public void updateSnapshotCloneTime(long time)
updateSnapshotCloneTime
in interface MetricsMasterSource
public void updateSnapshotRestoreTime(long time)
updateSnapshotRestoreTime
in interface MetricsMasterSource
public void updateMetaWALSplitTime(long time)
updateMetaWALSplitTime
in interface MetricsMasterSource
public void updateMetaWALSplitSize(long size)
updateMetaWALSplitSize
in interface MetricsMasterSource
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 |