Package org.apache.hadoop.hbase.master
Interface MetricsAssignmentManagerSource
- All Superinterfaces:
BaseSource
- All Known Implementing Classes:
MetricsAssignmentManagerSourceImpl
-
Field Summary
FieldsModifier and TypeFieldDescriptionstatic final Stringstatic final Stringstatic final Stringstatic final Stringstatic final Stringstatic final Stringstatic final Stringstatic final Stringstatic final Stringstatic final Stringstatic final StringThe context metrics will be under.static final StringDescriptionstatic final StringThe name of the metrics context that metrics will be under in jmxstatic final StringThe name of the metricsstatic final Stringstatic final Stringstatic final Stringstatic final Stringstatic final Stringstatic final Stringstatic final Stringstatic final Stringstatic final Stringstatic final Stringstatic final Stringstatic final Stringstatic final Stringstatic final Stringstatic final Stringstatic final Stringstatic final Stringstatic final Stringstatic final Stringstatic final Stringstatic final Stringstatic final Stringstatic final StringFields inherited from interface org.apache.hadoop.hbase.metrics.BaseSource
HBASE_METRICS_SYSTEM_NAME -
Method Summary
Modifier and TypeMethodDescriptionReturnsOperationMetricscontaining common metrics for assign region operationReturnsOperationMetricscontaining common metrics for close region requestReturnsOperationMetricscontaining common metrics for merge operationReturnsOperationMetricscontaining 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.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 ritCountOverThreshold) Set the count of the number of regions that have been in transition over the threshold time.voidsetRITOldestAge(long age) 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 interface org.apache.hadoop.hbase.metrics.BaseSource
decGauge, getMetricRegistryInfo, getMetricsContext, getMetricsDescription, getMetricsJmxContext, getMetricsName, incCounters, incGauge, init, removeMetric, setGauge, updateHistogram
-
Field Details
-
METRICS_NAME
The name of the metrics- See Also:
-
METRICS_CONTEXT
The context metrics will be under.- See Also:
-
METRICS_JMX_CONTEXT
The name of the metrics context that metrics will be under in jmx- See Also:
-
METRICS_DESCRIPTION
Description- See Also:
-
RIT_COUNT_NAME
- See Also:
-
RIT_COUNT_OVER_THRESHOLD_NAME
- See Also:
-
RIT_OLDEST_AGE_NAME
- See Also:
-
RIT_DURATION_NAME
- See Also:
-
DEAD_SERVER_OPEN_REGIONS
- See Also:
-
UNKNOWN_SERVER_OPEN_REGIONS
- See Also:
-
RIT_COUNT_DESC
- See Also:
-
RIT_COUNT_OVER_THRESHOLD_DESC
- See Also:
-
RIT_OLDEST_AGE_DESC
- See Also:
-
RIT_DURATION_DESC
- See Also:
-
ORPHAN_REGIONS_ON_RS
- See Also:
-
ORPHAN_REGIONS_ON_FS
- See Also:
-
INCONSISTENT_REGIONS
- See Also:
-
ORPHAN_REGIONS_ON_RS_DESC
- See Also:
-
ORPHAN_REGIONS_ON_FS_DESC
- See Also:
-
INCONSISTENT_REGIONS_DESC
- See Also:
-
HOLES
- See Also:
-
OVERLAPS
- See Also:
-
UNKNOWN_SERVER_REGIONS
- See Also:
-
EMPTY_REGION_INFO_REGIONS
- See Also:
-
HOLES_DESC
- See Also:
-
OVERLAPS_DESC
- See Also:
-
UNKNOWN_SERVER_REGIONS_DESC
- See Also:
-
EMPTY_REGION_INFO_REGIONS_DESC
- See Also:
-
ASSIGN_METRIC_PREFIX
- See Also:
-
UNASSIGN_METRIC_PREFIX
- See Also:
-
MOVE_METRIC_PREFIX
- See Also:
-
REOPEN_METRIC_PREFIX
- See Also:
-
OPEN_METRIC_PREFIX
- See Also:
-
CLOSE_METRIC_PREFIX
- See Also:
-
SPLIT_METRIC_PREFIX
- See Also:
-
MERGE_METRIC_PREFIX
- See Also:
-
OPERATION_COUNT_NAME
- See Also:
-
-
Method Details
-
setRIT
Set the number of regions in transition.- Parameters:
ritCount- count of the regions in transition.
-
setRITCountOverThreshold
Set the count of the number of regions that have been in transition over the threshold time.- Parameters:
ritCountOverThreshold- number of regions in transition for longer than threshold.
-
setRITOldestAge
Set the oldest region in transition.- Parameters:
age- age of the oldest RIT.
-
updateRitDuration
-
updateDeadServerOpenRegions
-
updateUnknownServerOpenRegions
-
setOrphanRegionsOnRs
Set the number of orphan regions on RS.- Parameters:
orphanRegionsOnRs- count of the orphan regions on RS in HBCK chore report.
-
setOrphanRegionsOnFs
Set the number of orphan regions on FS.- Parameters:
orphanRegionsOnFs- count of the orphan regions on FS in HBCK chore report.
-
setInconsistentRegions
Set the number of inconsistent regions.- Parameters:
inconsistentRegions- count of the inconsistent regions in HBCK chore report.
-
setHoles
Set the number of holes.- Parameters:
holes- count of the holes in CatalogJanitor Consistency report.
-
setOverlaps
Set the number of overlaps.- Parameters:
overlaps- count of the overlaps in CatalogJanitor Consistency report.
-
setUnknownServerRegions
Set the number of unknown server regions.- Parameters:
unknownServerRegions- count of the unknown server regions in CatalogJanitor Consistency report.
-
setEmptyRegionInfoRegions
Set the number of regions with empty region info.- Parameters:
emptyRegionInfoRegions- count of the regions with empty region info in CatalogJanitor Consistency report.
-
incrementOperationCounter
void incrementOperationCounter()TODO: Remove. This may not be needed now as assign and unassign counts are tracked separately Increment the count of operations (assign/unassign). -
getAssignMetrics
ReturnsOperationMetricscontaining common metrics for assign region operation -
getUnassignMetrics
ReturnsOperationMetricscontaining common metrics for unassign region operation -
getMoveMetrics
ReturnsOperationMetricscontaining common metrics for move region operation -
getReopenMetrics
ReturnsOperationMetricscontaining common metrics for reopen region operation -
getOpenMetrics
ReturnsOperationMetricscontaining common metrics for open region request -
getCloseMetrics
ReturnsOperationMetricscontaining common metrics for close region request -
getSplitMetrics
ReturnsOperationMetricscontaining common metrics for split operation -
getMergeMetrics
ReturnsOperationMetricscontaining common metrics for merge operation
-