@InterfaceAudience.Private public class MetricsAssignmentManagerSourceImpl extends BaseSourceImpl implements MetricsAssignmentManagerSource
| Modifier and Type | Field and Description | 
|---|---|
| private OperationMetrics | assignMetrics | 
| private OperationMetrics | closeMetrics | 
| private org.apache.hadoop.metrics2.lib.MutableGaugeLong | deadServerOpenRegions | 
| private OperationMetrics | mergeMetrics | 
| private OperationMetrics | moveMetrics | 
| private OperationMetrics | openMetrics | 
| private MutableFastCounter | operationCounter | 
| private OperationMetrics | reopenMetrics | 
| private org.apache.hadoop.metrics2.lib.MutableGaugeLong | ritCountOverThresholdGauge | 
| private MetricHistogram | ritDurationHisto | 
| private org.apache.hadoop.metrics2.lib.MutableGaugeLong | ritGauge | 
| private org.apache.hadoop.metrics2.lib.MutableGaugeLong | ritOldestAgeGauge | 
| private OperationMetrics | splitMetrics | 
| private OperationMetrics | unassignMetrics | 
| private org.apache.hadoop.metrics2.lib.MutableGaugeLong | unknownServerOpenRegions | 
metricsAdapter, metricsContext, metricsDescription, metricsJmxContext, metricsName, metricsRegistry, registryASSIGN_METRIC_PREFIX, CLOSE_METRIC_PREFIX, DEAD_SERVER_OPEN_REGIONS, MERGE_METRIC_PREFIX, METRICS_CONTEXT, METRICS_DESCRIPTION, METRICS_JMX_CONTEXT, METRICS_NAME, MOVE_METRIC_PREFIX, OPEN_METRIC_PREFIX, OPERATION_COUNT_NAME, REOPEN_METRIC_PREFIX, RIT_COUNT_DESC, RIT_COUNT_NAME, RIT_COUNT_OVER_THRESHOLD_DESC, RIT_COUNT_OVER_THRESHOLD_NAME, RIT_DURATION_DESC, RIT_DURATION_NAME, RIT_OLDEST_AGE_DESC, RIT_OLDEST_AGE_NAME, SPLIT_METRIC_PREFIX, UNASSIGN_METRIC_PREFIX, UNKNOWN_SERVER_OPEN_REGIONSHBASE_METRICS_SYSTEM_NAME| Constructor and Description | 
|---|
| MetricsAssignmentManagerSourceImpl() | 
| MetricsAssignmentManagerSourceImpl(String metricsName,
                                  String metricsDescription,
                                  String metricsContext,
                                  String metricsJmxContext) | 
| Modifier and Type | Method and Description | 
|---|---|
| OperationMetrics | getAssignMetrics() | 
| OperationMetrics | getCloseMetrics() | 
| OperationMetrics | getMergeMetrics() | 
| void | getMetrics(org.apache.hadoop.metrics2.MetricsCollector metricsCollector,
          boolean all) | 
| OperationMetrics | getMoveMetrics() | 
| OperationMetrics | getOpenMetrics() | 
| OperationMetrics | getReopenMetrics() | 
| OperationMetrics | getSplitMetrics() | 
| OperationMetrics | getUnassignMetrics() | 
| void | incrementOperationCounter()TODO: Remove. | 
| 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 | updateDeadServerOpenRegions(int deadRegions) | 
| void | updateRitDuration(long duration) | 
| void | updateUnknownServerOpenRegions(int unknownRegions) | 
decGauge, getMetricsContext, getMetricsDescription, getMetricsJmxContext, getMetricsName, getMetricsRegistry, incCounters, incGauge, removeMetric, setGauge, updateHistogramclone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitdecGauge, getMetricRegistryInfo, getMetricsContext, getMetricsDescription, getMetricsJmxContext, getMetricsName, incCounters, incGauge, removeMetric, setGauge, updateHistogramprivate org.apache.hadoop.metrics2.lib.MutableGaugeLong ritGauge
private org.apache.hadoop.metrics2.lib.MutableGaugeLong ritCountOverThresholdGauge
private org.apache.hadoop.metrics2.lib.MutableGaugeLong ritOldestAgeGauge
private MetricHistogram ritDurationHisto
private org.apache.hadoop.metrics2.lib.MutableGaugeLong deadServerOpenRegions
private org.apache.hadoop.metrics2.lib.MutableGaugeLong unknownServerOpenRegions
private MutableFastCounter operationCounter
private OperationMetrics assignMetrics
private OperationMetrics unassignMetrics
private OperationMetrics moveMetrics
private OperationMetrics reopenMetrics
private OperationMetrics openMetrics
private OperationMetrics closeMetrics
private OperationMetrics splitMetrics
private OperationMetrics mergeMetrics
public MetricsAssignmentManagerSourceImpl()
public MetricsAssignmentManagerSourceImpl(String metricsName, String metricsDescription, String metricsContext, String metricsJmxContext)
public void init()
BaseSourceinit in interface BaseSourceinit in class BaseSourceImplpublic 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.public void incrementOperationCounter()
MetricsAssignmentManagerSourceincrementOperationCounter in interface MetricsAssignmentManagerSourcepublic void updateRitDuration(long duration)
updateRitDuration in interface MetricsAssignmentManagerSourcepublic void updateDeadServerOpenRegions(int deadRegions)
updateDeadServerOpenRegions in interface MetricsAssignmentManagerSourcepublic void updateUnknownServerOpenRegions(int unknownRegions)
updateUnknownServerOpenRegions in interface MetricsAssignmentManagerSourcepublic OperationMetrics getAssignMetrics()
getAssignMetrics in interface MetricsAssignmentManagerSourceOperationMetrics containing common metrics for assign region operationpublic OperationMetrics getUnassignMetrics()
getUnassignMetrics in interface MetricsAssignmentManagerSourceOperationMetrics containing common metrics for unassign region operationpublic OperationMetrics getSplitMetrics()
getSplitMetrics in interface MetricsAssignmentManagerSourceOperationMetrics containing common metrics for split operationpublic OperationMetrics getMergeMetrics()
getMergeMetrics in interface MetricsAssignmentManagerSourceOperationMetrics containing common metrics for merge operationpublic OperationMetrics getMoveMetrics()
getMoveMetrics in interface MetricsAssignmentManagerSourceOperationMetrics containing common metrics for move region operationpublic OperationMetrics getReopenMetrics()
getReopenMetrics in interface MetricsAssignmentManagerSourceOperationMetrics containing common metrics for reopen region operationpublic OperationMetrics getOpenMetrics()
getOpenMetrics in interface MetricsAssignmentManagerSourceOperationMetrics containing common metrics for open region requestpublic OperationMetrics getCloseMetrics()
getCloseMetrics in interface MetricsAssignmentManagerSourceOperationMetrics containing common metrics for close region requestpublic void getMetrics(org.apache.hadoop.metrics2.MetricsCollector metricsCollector, boolean all)
getMetrics in interface org.apache.hadoop.metrics2.MetricsSourcegetMetrics in class BaseSourceImplCopyright © 2007–2021 The Apache Software Foundation. All rights reserved.