Package org.apache.hadoop.hbase.master
Interface MetricsAssignmentManagerSource
- All Superinterfaces:
BaseSource
- All Known Implementing Classes:
MetricsAssignmentManagerSourceImpl
-
Field Summary
Modifier and TypeFieldDescriptionstatic final String
static final String
static final String
static final String
static final String
static final String
static final String
static final String
static final String
static final String
static final String
The context metrics will be under.static final String
Descriptionstatic final String
The name of the metrics context that metrics will be under in jmxstatic final String
The name of the metricsstatic final String
static final String
static final String
static final String
static final String
static final String
static final String
static final String
static final String
static final String
static final String
static final String
static final String
static final String
static final String
static final String
static final String
static final String
static final String
static final String
static final String
static final String
static final String
Fields inherited from interface org.apache.hadoop.hbase.metrics.BaseSource
HBASE_METRICS_SYSTEM_NAME
-
Method Summary
Modifier and TypeMethodDescriptionReturnsOperationMetrics
containing common metrics for assign region operationReturnsOperationMetrics
containing common metrics for close region requestReturnsOperationMetrics
containing common metrics for merge operationReturnsOperationMetrics
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
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 ritCountOverThreshold) Set the count of the number of regions that have been in transition over the threshold time.void
setRITOldestAge
(long age) 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 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
ReturnsOperationMetrics
containing common metrics for assign region operation -
getUnassignMetrics
ReturnsOperationMetrics
containing common metrics for unassign region operation -
getMoveMetrics
ReturnsOperationMetrics
containing common metrics for move region operation -
getReopenMetrics
ReturnsOperationMetrics
containing common metrics for reopen region operation -
getOpenMetrics
ReturnsOperationMetrics
containing common metrics for open region request -
getCloseMetrics
ReturnsOperationMetrics
containing common metrics for close region request -
getSplitMetrics
ReturnsOperationMetrics
containing common metrics for split operation -
getMergeMetrics
ReturnsOperationMetrics
containing common metrics for merge operation
-