Class MetricsRegionServerQuotaSourceImpl
java.lang.Object
org.apache.hadoop.hbase.metrics.BaseSourceImpl
org.apache.hadoop.hbase.regionserver.MetricsRegionServerQuotaSourceImpl
- All Implemented Interfaces:
BaseSource
,MetricsRegionServerQuotaSource
,org.apache.hadoop.metrics2.MetricsSource
@Private
public class MetricsRegionServerQuotaSourceImpl
extends BaseSourceImpl
implements MetricsRegionServerQuotaSource
Implementation of
MetricsRegionServerQuotaSource
.-
Field Summary
Modifier and TypeFieldDescriptionprivate final Timer
private final Counter
private final Timer
private final Timer
private final Meter
private final Meter
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.regionserver.MetricsRegionServerQuotaSource
FILE_SYSTEM_UTILIZATION_CHORE_TIME, METRICS_CONTEXT, METRICS_DESCRIPTION, METRICS_JMX_CONTEXT, METRICS_NAME, NUM_REGION_SIZE_REPORT_NAME, NUM_SPACE_SNAPSHOTS_RECEIVED_NAME, NUM_TABLES_IN_VIOLATION_NAME, REGION_SIZE_REPORTING_CHORE_TIME_NAME, SPACE_QUOTA_REFRESHER_CHORE_TIME
-
Constructor Summary
ConstructorDescriptionMetricsRegionServerQuotaSourceImpl
(String metricsName, String metricsDescription, String metricsContext, String metricsJmxContext) -
Method Summary
Modifier and TypeMethodDescriptionvoid
incrementNumRegionSizeReportsSent
(long numReportsSent) Updates the metric tracking how many region size reports were sent from this RegionServer to the Master.void
incrementRegionSizeReportingChoreTime
(long time) Updates the metric tracking how much time was spent sending region size reports to the Master by the RegionSizeReportingChore.void
Updates the metric tracking how much time was spent scanning the filesystem to compute the size of each region hosted by this RegionServer.void
incrementSpaceQuotaRefresherChoreTime
(long time) Updates the metric tracking how much time was spent updating the RegionServer with the latest information on space quotas from thehbase:quota
table.void
updateNumTablesInSpaceQuotaViolation
(long tablesInViolation) Updates the metric tracking how many tables this RegionServer has marked as in violation of their space quota.void
updateNumTableSpaceQuotaSnapshots
(long numSnapshots) Updates the metric tracking how many tables this RegionServer has receivedSpaceQuotaSnapshot
s for.Methods inherited from class org.apache.hadoop.hbase.metrics.BaseSourceImpl
decGauge, getMetrics, getMetricsContext, getMetricsDescription, getMetricsJmxContext, getMetricsName, getMetricsRegistry, incCounters, incGauge, init, 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, init, removeMetric, setGauge, updateHistogram
-
Field Details
-
tablesInViolationCounter
-
spaceQuotaSnapshotsReceived
-
fileSystemUtilizationChoreTimer
-
spaceQuotaRefresherChoreTimer
-
regionSizeReportCounter
-
regionSizeReportingChoreTimer
-
-
Constructor Details
-
MetricsRegionServerQuotaSourceImpl
public MetricsRegionServerQuotaSourceImpl() -
MetricsRegionServerQuotaSourceImpl
public MetricsRegionServerQuotaSourceImpl(String metricsName, String metricsDescription, String metricsContext, String metricsJmxContext)
-
-
Method Details
-
updateNumTablesInSpaceQuotaViolation
Description copied from interface:MetricsRegionServerQuotaSource
Updates the metric tracking how many tables this RegionServer has marked as in violation of their space quota.- Specified by:
updateNumTablesInSpaceQuotaViolation
in interfaceMetricsRegionServerQuotaSource
-
updateNumTableSpaceQuotaSnapshots
Description copied from interface:MetricsRegionServerQuotaSource
Updates the metric tracking how many tables this RegionServer has receivedSpaceQuotaSnapshot
s for.- Specified by:
updateNumTableSpaceQuotaSnapshots
in interfaceMetricsRegionServerQuotaSource
- Parameters:
numSnapshots
- The number ofSpaceQuotaSnapshot
s received from the Master.
-
incrementSpaceQuotaFileSystemScannerChoreTime
Description copied from interface:MetricsRegionServerQuotaSource
Updates the metric tracking how much time was spent scanning the filesystem to compute the size of each region hosted by this RegionServer.- Specified by:
incrementSpaceQuotaFileSystemScannerChoreTime
in interfaceMetricsRegionServerQuotaSource
- Parameters:
time
- The execution time of the chore in milliseconds.
-
incrementSpaceQuotaRefresherChoreTime
Description copied from interface:MetricsRegionServerQuotaSource
Updates the metric tracking how much time was spent updating the RegionServer with the latest information on space quotas from thehbase:quota
table.- Specified by:
incrementSpaceQuotaRefresherChoreTime
in interfaceMetricsRegionServerQuotaSource
- Parameters:
time
- The execution time of the chore in milliseconds.
-
incrementNumRegionSizeReportsSent
Description copied from interface:MetricsRegionServerQuotaSource
Updates the metric tracking how many region size reports were sent from this RegionServer to the Master. These reports contain information on the size of each Region hosted locally.- Specified by:
incrementNumRegionSizeReportsSent
in interfaceMetricsRegionServerQuotaSource
- Parameters:
numReportsSent
- The number of region size reports sent
-
incrementRegionSizeReportingChoreTime
Description copied from interface:MetricsRegionServerQuotaSource
Updates the metric tracking how much time was spent sending region size reports to the Master by the RegionSizeReportingChore.- Specified by:
incrementRegionSizeReportingChoreTime
in interfaceMetricsRegionServerQuotaSource
- Parameters:
time
- The execution time in milliseconds.
-