@InterfaceAudience.Private public class MetricsRegionServerQuotaSourceImpl extends BaseSourceImpl implements MetricsRegionServerQuotaSource
MetricsRegionServerQuotaSource.| Modifier and Type | Field and Description |
|---|---|
private Timer |
fileSystemUtilizationChoreTimer |
private Counter |
regionSizeReportCounter |
private Timer |
regionSizeReportingChoreTimer |
private Timer |
spaceQuotaRefresherChoreTimer |
private Meter |
spaceQuotaSnapshotsReceived |
private Meter |
tablesInViolationCounter |
metricsAdapter, metricsContext, metricsDescription, metricsJmxContext, metricsName, metricsRegistry, registryFILE_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_TIMEHBASE_METRICS_SYSTEM_NAME| Constructor and Description |
|---|
MetricsRegionServerQuotaSourceImpl() |
MetricsRegionServerQuotaSourceImpl(String metricsName,
String metricsDescription,
String metricsContext,
String metricsJmxContext) |
| Modifier and Type | Method and Description |
|---|---|
void |
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 |
incrementSpaceQuotaFileSystemScannerChoreTime(long time)
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 the
hbase: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 received
SpaceQuotaSnapshots for. |
decGauge, getMetrics, getMetricsContext, getMetricsDescription, getMetricsJmxContext, getMetricsName, getMetricsRegistry, incCounters, incGauge, init, removeMetric, setGauge, updateHistogramclone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitdecGauge, getMetricRegistryInfo, getMetricsContext, getMetricsDescription, getMetricsJmxContext, getMetricsName, incCounters, incGauge, init, removeMetric, setGauge, updateHistogramprivate final Meter tablesInViolationCounter
private final Meter spaceQuotaSnapshotsReceived
private final Timer fileSystemUtilizationChoreTimer
private final Timer spaceQuotaRefresherChoreTimer
private final Counter regionSizeReportCounter
private final Timer regionSizeReportingChoreTimer
public MetricsRegionServerQuotaSourceImpl()
public MetricsRegionServerQuotaSourceImpl(String metricsName, String metricsDescription, String metricsContext, String metricsJmxContext)
public void updateNumTablesInSpaceQuotaViolation(long tablesInViolation)
MetricsRegionServerQuotaSourceupdateNumTablesInSpaceQuotaViolation in interface MetricsRegionServerQuotaSourcepublic void updateNumTableSpaceQuotaSnapshots(long numSnapshots)
MetricsRegionServerQuotaSourceSpaceQuotaSnapshots for.updateNumTableSpaceQuotaSnapshots in interface MetricsRegionServerQuotaSourcenumSnapshots - The number of SpaceQuotaSnapshots received from the Master.public void incrementSpaceQuotaFileSystemScannerChoreTime(long time)
MetricsRegionServerQuotaSourceincrementSpaceQuotaFileSystemScannerChoreTime in interface MetricsRegionServerQuotaSourcetime - The execution time of the chore in milliseconds.public void incrementSpaceQuotaRefresherChoreTime(long time)
MetricsRegionServerQuotaSourcehbase:quota table.incrementSpaceQuotaRefresherChoreTime in interface MetricsRegionServerQuotaSourcetime - The execution time of the chore in milliseconds.public void incrementNumRegionSizeReportsSent(long numReportsSent)
MetricsRegionServerQuotaSourceincrementNumRegionSizeReportsSent in interface MetricsRegionServerQuotaSourcenumReportsSent - The number of region size reports sentpublic void incrementRegionSizeReportingChoreTime(long time)
MetricsRegionServerQuotaSourceincrementRegionSizeReportingChoreTime in interface MetricsRegionServerQuotaSourcetime - The execution time in milliseconds.Copyright © 2007–2020 The Apache Software Foundation. All rights reserved.