@InterfaceAudience.Private public class MetricsAssignmentManagerSourceImpl extends BaseSourceImpl implements MetricsAssignmentManagerSource
| Modifier and Type | Field and Description | 
|---|---|
| private MutableHistogram | assignTimeHisto | 
| private MutableHistogram | bulkAssignTimeHisto | 
| private org.apache.hadoop.metrics2.lib.MutableGaugeLong | ritCountOverThresholdGauge | 
| private org.apache.hadoop.metrics2.lib.MutableGaugeLong | ritGauge | 
| private org.apache.hadoop.metrics2.lib.MutableGaugeLong | ritOldestAgeGauge | 
metricsContext, metricsDescription, metricsJmxContext, metricsName, metricsRegistryASSIGN_TIME_NAME, BULK_ASSIGN_TIME_NAME, METRICS_CONTEXT, METRICS_DESCRIPTION, METRICS_JMX_CONTEXT, METRICS_NAME, RIT_COUNT_NAME, RIT_COUNT_OVER_THRESHOLD_NAME, RIT_OLDEST_AGE_NAMEHBASE_METRICS_SYSTEM_NAME| Constructor and Description | 
|---|
| MetricsAssignmentManagerSourceImpl() | 
| MetricsAssignmentManagerSourceImpl(String metricsName,
                                  String metricsDescription,
                                  String metricsContext,
                                  String metricsJmxContext) | 
| Modifier and Type | Method and Description | 
|---|---|
| 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 | updateAssignmentTime(long time) | 
| void | updateBulkAssignTime(long time) | 
decGauge, getMetrics, getMetricsContext, getMetricsDescription, getMetricsJmxContext, getMetricsName, getMetricsRegistry, incCounters, incGauge, removeMetric, setGauge, updateHistogram, updateQuantileclone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitdecGauge, getMetricsContext, getMetricsDescription, getMetricsJmxContext, getMetricsName, incCounters, incGauge, removeMetric, setGauge, updateHistogram, updateQuantileprivate org.apache.hadoop.metrics2.lib.MutableGaugeLong ritGauge
private org.apache.hadoop.metrics2.lib.MutableGaugeLong ritCountOverThresholdGauge
private org.apache.hadoop.metrics2.lib.MutableGaugeLong ritOldestAgeGauge
private MutableHistogram assignTimeHisto
private MutableHistogram bulkAssignTimeHisto
public void init()
BaseSourceinit in interface BaseSourceinit in class BaseSourceImplpublic void updateAssignmentTime(long time)
updateAssignmentTime in interface MetricsAssignmentManagerSourcepublic void updateBulkAssignTime(long time)
updateBulkAssignTime in interface MetricsAssignmentManagerSourcepublic void setRIT(int ritCount)
MetricsAssignmentManagerSourcesetRIT in interface MetricsAssignmentManagerSourceritCount - count of the regions in transition.public void setRITCountOverThreshold(int ritCount)
MetricsAssignmentManagerSourcesetRITCountOverThreshold in interface MetricsAssignmentManagerSourceritCount - number of regions in transition for longer than threshold.public void setRITOldestAge(long ritCount)
MetricsAssignmentManagerSourcesetRITOldestAge in interface MetricsAssignmentManagerSourceritCount - age of the oldest RIT.Copyright © 2007–2019 The Apache Software Foundation. All rights reserved.