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
FieldsModifier and TypeFieldDescriptionprivate final Timerprivate final Counterprivate final Timerprivate final Timerprivate final Meterprivate final MeterFields 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.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
ConstructorsConstructorDescriptionMetricsRegionServerQuotaSourceImpl(String metricsName, String metricsDescription, String metricsContext, String metricsJmxContext) -
Method Summary
Modifier and TypeMethodDescriptionvoidincrementNumRegionSizeReportsSent(long numReportsSent) Updates the metric tracking how many region size reports were sent from this RegionServer to the Master.voidincrementRegionSizeReportingChoreTime(long time) Updates the metric tracking how much time was spent sending region size reports to the Master by the RegionSizeReportingChore.voidUpdates the metric tracking how much time was spent scanning the filesystem to compute the size of each region hosted by this RegionServer.voidincrementSpaceQuotaRefresherChoreTime(long time) Updates the metric tracking how much time was spent updating the RegionServer with the latest information on space quotas from thehbase:quotatable.voidupdateNumTablesInSpaceQuotaViolation(long tablesInViolation) Updates the metric tracking how many tables this RegionServer has marked as in violation of their space quota.voidupdateNumTableSpaceQuotaSnapshots(long numSnapshots) Updates the metric tracking how many tables this RegionServer has receivedSpaceQuotaSnapshots for.Methods inherited from class org.apache.hadoop.hbase.metrics.BaseSourceImpl
decGauge, getMetrics, getMetricsContext, getMetricsDescription, getMetricsJmxContext, getMetricsName, getMetricsRegistry, incCounters, incGauge, init, 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, 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:MetricsRegionServerQuotaSourceUpdates the metric tracking how many tables this RegionServer has marked as in violation of their space quota.- Specified by:
updateNumTablesInSpaceQuotaViolationin interfaceMetricsRegionServerQuotaSource
-
updateNumTableSpaceQuotaSnapshots
Description copied from interface:MetricsRegionServerQuotaSourceUpdates the metric tracking how many tables this RegionServer has receivedSpaceQuotaSnapshots for.- Specified by:
updateNumTableSpaceQuotaSnapshotsin interfaceMetricsRegionServerQuotaSource- Parameters:
numSnapshots- The number ofSpaceQuotaSnapshots received from the Master.
-
incrementSpaceQuotaFileSystemScannerChoreTime
Description copied from interface:MetricsRegionServerQuotaSourceUpdates the metric tracking how much time was spent scanning the filesystem to compute the size of each region hosted by this RegionServer.- Specified by:
incrementSpaceQuotaFileSystemScannerChoreTimein interfaceMetricsRegionServerQuotaSource- Parameters:
time- The execution time of the chore in milliseconds.
-
incrementSpaceQuotaRefresherChoreTime
Description copied from interface:MetricsRegionServerQuotaSourceUpdates the metric tracking how much time was spent updating the RegionServer with the latest information on space quotas from thehbase:quotatable.- Specified by:
incrementSpaceQuotaRefresherChoreTimein interfaceMetricsRegionServerQuotaSource- Parameters:
time- The execution time of the chore in milliseconds.
-
incrementNumRegionSizeReportsSent
Description copied from interface:MetricsRegionServerQuotaSourceUpdates 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:
incrementNumRegionSizeReportsSentin interfaceMetricsRegionServerQuotaSource- Parameters:
numReportsSent- The number of region size reports sent
-
incrementRegionSizeReportingChoreTime
Description copied from interface:MetricsRegionServerQuotaSourceUpdates the metric tracking how much time was spent sending region size reports to the Master by the RegionSizeReportingChore.- Specified by:
incrementRegionSizeReportingChoreTimein interfaceMetricsRegionServerQuotaSource- Parameters:
time- The execution time in milliseconds.
-