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
Modifier and TypeFieldDescriptionprivate OperationMetrics
private OperationMetrics
private org.apache.hadoop.metrics2.lib.MutableGaugeLong
private org.apache.hadoop.metrics2.lib.MutableGaugeLong
private org.apache.hadoop.metrics2.lib.MutableGaugeLong
private org.apache.hadoop.metrics2.lib.MutableGaugeLong
private OperationMetrics
private OperationMetrics
private OperationMetrics
private MutableFastCounter
private org.apache.hadoop.metrics2.lib.MutableGaugeLong
private org.apache.hadoop.metrics2.lib.MutableGaugeLong
private org.apache.hadoop.metrics2.lib.MutableGaugeLong
private OperationMetrics
private org.apache.hadoop.metrics2.lib.MutableGaugeLong
private MetricHistogram
private org.apache.hadoop.metrics2.lib.MutableGaugeLong
private org.apache.hadoop.metrics2.lib.MutableGaugeLong
private OperationMetrics
private OperationMetrics
private org.apache.hadoop.metrics2.lib.MutableGaugeLong
private org.apache.hadoop.metrics2.lib.MutableGaugeLong
Fields inherited from class org.apache.hadoop.hbase.metrics.BaseSourceImpl
metricsAdapter, metricsContext, metricsDescription, metricsJmxContext, metricsName, metricsRegistry, registry
Fields inherited from interface org.apache.hadoop.hbase.metrics.BaseSource
HBASE_METRICS_SYSTEM_NAME
Fields 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
ConstructorDescriptionMetricsAssignmentManagerSourceImpl
(String metricsName, String metricsDescription, String metricsContext, String metricsJmxContext) -
Method Summary
Modifier and TypeMethodDescriptionReturnsOperationMetrics
containing common metrics for assign region operationReturnsOperationMetrics
containing common metrics for close region requestReturnsOperationMetrics
containing common metrics for merge operationvoid
getMetrics
(org.apache.hadoop.metrics2.MetricsCollector metricsCollector, boolean all) ReturnsOperationMetrics
containing common metrics for move region operationReturnsOperationMetrics
containing common metrics for open region requestReturnsOperationMetrics
containing common metrics for reopen region operationReturnsOperationMetrics
containing common metrics for split operationReturnsOperationMetrics
containing common metrics for unassign region operationvoid
TODO: Remove.void
init()
Clear out the metrics and re-prepare the source.void
setEmptyRegionInfoRegions
(int emptyRegionInfoRegions) Set the number of regions with empty region info.void
setHoles
(int holes) Set the number of holes.void
setInconsistentRegions
(int inconsistentRegions) Set the number of inconsistent regions.void
setOrphanRegionsOnFs
(int orphanRegionsOnFs) Set the number of orphan regions on FS.void
setOrphanRegionsOnRs
(int orphanRegionsOnRs) Set the number of orphan regions on RS.void
setOverlaps
(int overlaps) Set the number of overlaps.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 ritOldestAge) Set the oldest region in transition.void
setUnknownServerRegions
(int unknownServerRegions) Set the number of unknown server regions.void
updateDeadServerOpenRegions
(int deadRegions) void
updateRitDuration
(long duration) void
updateUnknownServerOpenRegions
(int unknownRegions) Methods inherited from class org.apache.hadoop.hbase.metrics.BaseSourceImpl
decGauge, getMetricsContext, getMetricsDescription, getMetricsJmxContext, getMetricsName, getMetricsRegistry, incCounters, incGauge, removeMetric, setGauge, updateHistogram
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, 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:BaseSource
Clear out the metrics and re-prepare the source.- Specified by:
init
in interfaceBaseSource
- Overrides:
init
in classBaseSourceImpl
-
setRIT
Description copied from interface:MetricsAssignmentManagerSource
Set the number of regions in transition.- Specified by:
setRIT
in interfaceMetricsAssignmentManagerSource
- Parameters:
ritCount
- count of the regions in transition.
-
setRITCountOverThreshold
Description copied from interface:MetricsAssignmentManagerSource
Set the count of the number of regions that have been in transition over the threshold time.- Specified by:
setRITCountOverThreshold
in interfaceMetricsAssignmentManagerSource
- Parameters:
ritCount
- number of regions in transition for longer than threshold.
-
setRITOldestAge
Description copied from interface:MetricsAssignmentManagerSource
Set the oldest region in transition.- Specified by:
setRITOldestAge
in interfaceMetricsAssignmentManagerSource
- Parameters:
ritOldestAge
- age of the oldest RIT.
-
incrementOperationCounter
Description copied from interface:MetricsAssignmentManagerSource
TODO: Remove. This may not be needed now as assign and unassign counts are tracked separately Increment the count of operations (assign/unassign).- Specified by:
incrementOperationCounter
in interfaceMetricsAssignmentManagerSource
-
updateRitDuration
- Specified by:
updateRitDuration
in interfaceMetricsAssignmentManagerSource
-
updateDeadServerOpenRegions
- Specified by:
updateDeadServerOpenRegions
in interfaceMetricsAssignmentManagerSource
-
updateUnknownServerOpenRegions
- Specified by:
updateUnknownServerOpenRegions
in interfaceMetricsAssignmentManagerSource
-
setOrphanRegionsOnRs
Description copied from interface:MetricsAssignmentManagerSource
Set the number of orphan regions on RS.- Specified by:
setOrphanRegionsOnRs
in interfaceMetricsAssignmentManagerSource
- Parameters:
orphanRegionsOnRs
- count of the orphan regions on RS in HBCK chore report.
-
setOrphanRegionsOnFs
Description copied from interface:MetricsAssignmentManagerSource
Set the number of orphan regions on FS.- Specified by:
setOrphanRegionsOnFs
in interfaceMetricsAssignmentManagerSource
- Parameters:
orphanRegionsOnFs
- count of the orphan regions on FS in HBCK chore report.
-
setInconsistentRegions
Description copied from interface:MetricsAssignmentManagerSource
Set the number of inconsistent regions.- Specified by:
setInconsistentRegions
in interfaceMetricsAssignmentManagerSource
- Parameters:
inconsistentRegions
- count of the inconsistent regions in HBCK chore report.
-
setHoles
Description copied from interface:MetricsAssignmentManagerSource
Set the number of holes.- Specified by:
setHoles
in interfaceMetricsAssignmentManagerSource
- Parameters:
holes
- count of the holes in CatalogJanitor Consistency report.
-
setOverlaps
Description copied from interface:MetricsAssignmentManagerSource
Set the number of overlaps.- Specified by:
setOverlaps
in interfaceMetricsAssignmentManagerSource
- Parameters:
overlaps
- count of the overlaps in CatalogJanitor Consistency report.
-
setUnknownServerRegions
Description copied from interface:MetricsAssignmentManagerSource
Set the number of unknown server regions.- Specified by:
setUnknownServerRegions
in interfaceMetricsAssignmentManagerSource
- Parameters:
unknownServerRegions
- count of the unknown server regions in CatalogJanitor Consistency report.
-
setEmptyRegionInfoRegions
Description copied from interface:MetricsAssignmentManagerSource
Set the number of regions with empty region info.- Specified by:
setEmptyRegionInfoRegions
in interfaceMetricsAssignmentManagerSource
- Parameters:
emptyRegionInfoRegions
- count of the regions with empty region info in CatalogJanitor Consistency report.
-
getAssignMetrics
Description copied from interface:MetricsAssignmentManagerSource
ReturnsOperationMetrics
containing common metrics for assign region operation- Specified by:
getAssignMetrics
in interfaceMetricsAssignmentManagerSource
-
getUnassignMetrics
Description copied from interface:MetricsAssignmentManagerSource
ReturnsOperationMetrics
containing common metrics for unassign region operation- Specified by:
getUnassignMetrics
in interfaceMetricsAssignmentManagerSource
-
getSplitMetrics
Description copied from interface:MetricsAssignmentManagerSource
ReturnsOperationMetrics
containing common metrics for split operation- Specified by:
getSplitMetrics
in interfaceMetricsAssignmentManagerSource
-
getMergeMetrics
Description copied from interface:MetricsAssignmentManagerSource
ReturnsOperationMetrics
containing common metrics for merge operation- Specified by:
getMergeMetrics
in interfaceMetricsAssignmentManagerSource
-
getMoveMetrics
Description copied from interface:MetricsAssignmentManagerSource
ReturnsOperationMetrics
containing common metrics for move region operation- Specified by:
getMoveMetrics
in interfaceMetricsAssignmentManagerSource
-
getReopenMetrics
Description copied from interface:MetricsAssignmentManagerSource
ReturnsOperationMetrics
containing common metrics for reopen region operation- Specified by:
getReopenMetrics
in interfaceMetricsAssignmentManagerSource
-
getOpenMetrics
Description copied from interface:MetricsAssignmentManagerSource
ReturnsOperationMetrics
containing common metrics for open region request- Specified by:
getOpenMetrics
in interfaceMetricsAssignmentManagerSource
-
getCloseMetrics
Description copied from interface:MetricsAssignmentManagerSource
ReturnsOperationMetrics
containing common metrics for close region request- Specified by:
getCloseMetrics
in interfaceMetricsAssignmentManagerSource
-
getMetrics
- Specified by:
getMetrics
in interfaceorg.apache.hadoop.metrics2.MetricsSource
- Overrides:
getMetrics
in classBaseSourceImpl
-