Package org.apache.hadoop.hbase.master
Class MetricsAssignmentManagerSourceImpl
java.lang.Object
org.apache.hadoop.hbase.metrics.BaseSourceImpl
org.apache.hadoop.hbase.master.MetricsAssignmentManagerSourceImpl
- All Implemented Interfaces:
MetricsAssignmentManagerSource,BaseSource,org.apache.hadoop.metrics2.MetricsSource
@Private
public class MetricsAssignmentManagerSourceImpl
extends BaseSourceImpl
implements MetricsAssignmentManagerSource
-
Field Summary
FieldsModifier and TypeFieldDescriptionprivate OperationMetricsprivate OperationMetricsprivate org.apache.hadoop.metrics2.lib.MutableGaugeLongprivate org.apache.hadoop.metrics2.lib.MutableGaugeLongprivate org.apache.hadoop.metrics2.lib.MutableGaugeLongprivate org.apache.hadoop.metrics2.lib.MutableGaugeLongprivate OperationMetricsprivate OperationMetricsprivate OperationMetricsprivate MutableFastCounterprivate org.apache.hadoop.metrics2.lib.MutableGaugeLongprivate org.apache.hadoop.metrics2.lib.MutableGaugeLongprivate org.apache.hadoop.metrics2.lib.MutableGaugeLongprivate OperationMetricsprivate org.apache.hadoop.metrics2.lib.MutableGaugeLongprivate MetricHistogramprivate org.apache.hadoop.metrics2.lib.MutableGaugeLongprivate org.apache.hadoop.metrics2.lib.MutableGaugeLongprivate OperationMetricsprivate OperationMetricsprivate org.apache.hadoop.metrics2.lib.MutableGaugeLongprivate org.apache.hadoop.metrics2.lib.MutableGaugeLongFields inherited from class org.apache.hadoop.hbase.metrics.BaseSourceImpl
metricsAdapter, metricsContext, metricsDescription, metricsJmxContext, metricsName, metricsRegistry, registryFields inherited from interface org.apache.hadoop.hbase.metrics.BaseSource
HBASE_METRICS_SYSTEM_NAMEFields inherited from interface org.apache.hadoop.hbase.master.MetricsAssignmentManagerSource
ASSIGN_METRIC_PREFIX, CLOSE_METRIC_PREFIX, DEAD_SERVER_OPEN_REGIONS, EMPTY_REGION_INFO_REGIONS, EMPTY_REGION_INFO_REGIONS_DESC, HOLES, HOLES_DESC, INCONSISTENT_REGIONS, INCONSISTENT_REGIONS_DESC, MERGE_METRIC_PREFIX, METRICS_CONTEXT, METRICS_DESCRIPTION, METRICS_JMX_CONTEXT, METRICS_NAME, MOVE_METRIC_PREFIX, OPEN_METRIC_PREFIX, OPERATION_COUNT_NAME, ORPHAN_REGIONS_ON_FS, ORPHAN_REGIONS_ON_FS_DESC, ORPHAN_REGIONS_ON_RS, ORPHAN_REGIONS_ON_RS_DESC, OVERLAPS, OVERLAPS_DESC, 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_REGIONS, UNKNOWN_SERVER_REGIONS, UNKNOWN_SERVER_REGIONS_DESC -
Constructor Summary
ConstructorsConstructorDescriptionMetricsAssignmentManagerSourceImpl(String metricsName, String metricsDescription, String metricsContext, String metricsJmxContext) -
Method Summary
Modifier and TypeMethodDescriptionReturnsOperationMetricscontaining common metrics for assign region operationReturnsOperationMetricscontaining common metrics for close region requestReturnsOperationMetricscontaining common metrics for merge operationvoidgetMetrics(org.apache.hadoop.metrics2.MetricsCollector metricsCollector, boolean all) ReturnsOperationMetricscontaining common metrics for move region operationReturnsOperationMetricscontaining common metrics for open region requestReturnsOperationMetricscontaining common metrics for reopen region operationReturnsOperationMetricscontaining common metrics for split operationReturnsOperationMetricscontaining common metrics for unassign region operationvoidTODO: Remove.voidinit()Clear out the metrics and re-prepare the source.voidsetEmptyRegionInfoRegions(int emptyRegionInfoRegions) Set the number of regions with empty region info.voidsetHoles(int holes) Set the number of holes.voidsetInconsistentRegions(int inconsistentRegions) Set the number of inconsistent regions.voidsetOrphanRegionsOnFs(int orphanRegionsOnFs) Set the number of orphan regions on FS.voidsetOrphanRegionsOnRs(int orphanRegionsOnRs) Set the number of orphan regions on RS.voidsetOverlaps(int overlaps) Set the number of overlaps.voidsetRIT(int ritCount) Set the number of regions in transition.voidsetRITCountOverThreshold(int ritCount) Set the count of the number of regions that have been in transition over the threshold time.voidsetRITOldestAge(long ritOldestAge) Set the oldest region in transition.voidsetUnknownServerRegions(int unknownServerRegions) Set the number of unknown server regions.voidupdateDeadServerOpenRegions(int deadRegions) voidupdateRitDuration(long duration) voidupdateUnknownServerOpenRegions(int unknownRegions) Methods inherited from class org.apache.hadoop.hbase.metrics.BaseSourceImpl
decGauge, getMetricsContext, getMetricsDescription, getMetricsJmxContext, getMetricsName, getMetricsRegistry, incCounters, incGauge, removeMetric, setGauge, updateHistogramMethods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitMethods inherited from interface org.apache.hadoop.hbase.metrics.BaseSource
decGauge, getMetricRegistryInfo, getMetricsContext, getMetricsDescription, getMetricsJmxContext, getMetricsName, incCounters, incGauge, removeMetric, setGauge, updateHistogram
-
Field Details
-
ritGauge
-
ritCountOverThresholdGauge
-
ritOldestAgeGauge
-
ritDurationHisto
-
deadServerOpenRegions
-
unknownServerOpenRegions
-
orphanRegionsOnRsGauge
-
orphanRegionsOnFsGauge
-
inconsistentRegionsGauge
-
holesGauge
-
overlapsGauge
-
unknownServerRegionsGauge
-
emptyRegionInfoRegionsGauge
-
operationCounter
-
assignMetrics
-
unassignMetrics
-
moveMetrics
-
reopenMetrics
-
openMetrics
-
closeMetrics
-
splitMetrics
-
mergeMetrics
-
-
Constructor Details
-
MetricsAssignmentManagerSourceImpl
public MetricsAssignmentManagerSourceImpl() -
MetricsAssignmentManagerSourceImpl
public MetricsAssignmentManagerSourceImpl(String metricsName, String metricsDescription, String metricsContext, String metricsJmxContext)
-
-
Method Details
-
init
Description copied from interface:BaseSourceClear out the metrics and re-prepare the source.- Specified by:
initin interfaceBaseSource- Overrides:
initin classBaseSourceImpl
-
setRIT
Description copied from interface:MetricsAssignmentManagerSourceSet the number of regions in transition.- Specified by:
setRITin interfaceMetricsAssignmentManagerSource- Parameters:
ritCount- count of the regions in transition.
-
setRITCountOverThreshold
Description copied from interface:MetricsAssignmentManagerSourceSet the count of the number of regions that have been in transition over the threshold time.- Specified by:
setRITCountOverThresholdin interfaceMetricsAssignmentManagerSource- Parameters:
ritCount- number of regions in transition for longer than threshold.
-
setRITOldestAge
Description copied from interface:MetricsAssignmentManagerSourceSet the oldest region in transition.- Specified by:
setRITOldestAgein interfaceMetricsAssignmentManagerSource- Parameters:
ritOldestAge- age of the oldest RIT.
-
incrementOperationCounter
Description copied from interface:MetricsAssignmentManagerSourceTODO: Remove. This may not be needed now as assign and unassign counts are tracked separately Increment the count of operations (assign/unassign).- Specified by:
incrementOperationCounterin interfaceMetricsAssignmentManagerSource
-
updateRitDuration
- Specified by:
updateRitDurationin interfaceMetricsAssignmentManagerSource
-
updateDeadServerOpenRegions
- Specified by:
updateDeadServerOpenRegionsin interfaceMetricsAssignmentManagerSource
-
updateUnknownServerOpenRegions
- Specified by:
updateUnknownServerOpenRegionsin interfaceMetricsAssignmentManagerSource
-
setOrphanRegionsOnRs
Description copied from interface:MetricsAssignmentManagerSourceSet the number of orphan regions on RS.- Specified by:
setOrphanRegionsOnRsin interfaceMetricsAssignmentManagerSource- Parameters:
orphanRegionsOnRs- count of the orphan regions on RS in HBCK chore report.
-
setOrphanRegionsOnFs
Description copied from interface:MetricsAssignmentManagerSourceSet the number of orphan regions on FS.- Specified by:
setOrphanRegionsOnFsin interfaceMetricsAssignmentManagerSource- Parameters:
orphanRegionsOnFs- count of the orphan regions on FS in HBCK chore report.
-
setInconsistentRegions
Description copied from interface:MetricsAssignmentManagerSourceSet the number of inconsistent regions.- Specified by:
setInconsistentRegionsin interfaceMetricsAssignmentManagerSource- Parameters:
inconsistentRegions- count of the inconsistent regions in HBCK chore report.
-
setHoles
Description copied from interface:MetricsAssignmentManagerSourceSet the number of holes.- Specified by:
setHolesin interfaceMetricsAssignmentManagerSource- Parameters:
holes- count of the holes in CatalogJanitor Consistency report.
-
setOverlaps
Description copied from interface:MetricsAssignmentManagerSourceSet the number of overlaps.- Specified by:
setOverlapsin interfaceMetricsAssignmentManagerSource- Parameters:
overlaps- count of the overlaps in CatalogJanitor Consistency report.
-
setUnknownServerRegions
Description copied from interface:MetricsAssignmentManagerSourceSet the number of unknown server regions.- Specified by:
setUnknownServerRegionsin interfaceMetricsAssignmentManagerSource- Parameters:
unknownServerRegions- count of the unknown server regions in CatalogJanitor Consistency report.
-
setEmptyRegionInfoRegions
Description copied from interface:MetricsAssignmentManagerSourceSet the number of regions with empty region info.- Specified by:
setEmptyRegionInfoRegionsin interfaceMetricsAssignmentManagerSource- Parameters:
emptyRegionInfoRegions- count of the regions with empty region info in CatalogJanitor Consistency report.
-
getAssignMetrics
Description copied from interface:MetricsAssignmentManagerSourceReturnsOperationMetricscontaining common metrics for assign region operation- Specified by:
getAssignMetricsin interfaceMetricsAssignmentManagerSource
-
getUnassignMetrics
Description copied from interface:MetricsAssignmentManagerSourceReturnsOperationMetricscontaining common metrics for unassign region operation- Specified by:
getUnassignMetricsin interfaceMetricsAssignmentManagerSource
-
getSplitMetrics
Description copied from interface:MetricsAssignmentManagerSourceReturnsOperationMetricscontaining common metrics for split operation- Specified by:
getSplitMetricsin interfaceMetricsAssignmentManagerSource
-
getMergeMetrics
Description copied from interface:MetricsAssignmentManagerSourceReturnsOperationMetricscontaining common metrics for merge operation- Specified by:
getMergeMetricsin interfaceMetricsAssignmentManagerSource
-
getMoveMetrics
Description copied from interface:MetricsAssignmentManagerSourceReturnsOperationMetricscontaining common metrics for move region operation- Specified by:
getMoveMetricsin interfaceMetricsAssignmentManagerSource
-
getReopenMetrics
Description copied from interface:MetricsAssignmentManagerSourceReturnsOperationMetricscontaining common metrics for reopen region operation- Specified by:
getReopenMetricsin interfaceMetricsAssignmentManagerSource
-
getOpenMetrics
Description copied from interface:MetricsAssignmentManagerSourceReturnsOperationMetricscontaining common metrics for open region request- Specified by:
getOpenMetricsin interfaceMetricsAssignmentManagerSource
-
getCloseMetrics
Description copied from interface:MetricsAssignmentManagerSourceReturnsOperationMetricscontaining common metrics for close region request- Specified by:
getCloseMetricsin interfaceMetricsAssignmentManagerSource
-
getMetrics
- Specified by:
getMetricsin interfaceorg.apache.hadoop.metrics2.MetricsSource- Overrides:
getMetricsin classBaseSourceImpl
-