@InterfaceAudience.Private public class MetricsMasterQuotaSourceImpl extends BaseSourceImpl implements org.apache.hadoop.hbase.master.MetricsMasterQuotaSource
MetricsMasterQuotaSource which writes the values passed in via the
interface to the metrics backend.metricsAdapter, metricsContext, metricsDescription, metricsJmxContext, metricsName, metricsRegistry, registryMETRICS_CONTEXT, METRICS_DESCRIPTION, METRICS_JMX_CONTEXT, METRICS_NAME, NS_QUOTA_USAGE_DESC, NS_QUOTA_USAGE_NAME, NUM_NS_QUOTA_VIOLATIONS_DESC, NUM_NS_QUOTA_VIOLATIONS_NAME, NUM_REGION_SIZE_REPORTS_DESC, NUM_REGION_SIZE_REPORTS_NAME, NUM_SPACE_QUOTAS_DESC, NUM_SPACE_QUOTAS_NAME, NUM_TABLES_QUOTA_VIOLATIONS_DESC, NUM_TABLES_QUOTA_VIOLATIONS_NAME, QUOTA_OBSERVER_CHORE_TIME_DESC, QUOTA_OBSERVER_CHORE_TIME_NAME, SNAPSHOT_OBSERVER_CHORE_TIME_DESC, SNAPSHOT_OBSERVER_CHORE_TIME_NAME, SNAPSHOT_OBSERVER_FETCH_TIME_DESC, SNAPSHOT_OBSERVER_FETCH_TIME_NAME, SNAPSHOT_OBSERVER_SIZE_COMPUTATION_TIME_DESC, SNAPSHOT_OBSERVER_SIZE_COMPUTATION_TIME_NAME, TABLE_QUOTA_USAGE_DESC, TABLE_QUOTA_USAGE_NAME| Constructor and Description |
|---|
MetricsMasterQuotaSourceImpl(org.apache.hadoop.hbase.master.MetricsMasterWrapper wrapper) |
MetricsMasterQuotaSourceImpl(String metricsName,
String metricsDescription,
String metricsContext,
String metricsJmxContext,
org.apache.hadoop.hbase.master.MetricsMasterWrapper wrapper) |
| Modifier and Type | Method and Description |
|---|---|
void |
getMetrics(org.apache.hadoop.metrics2.MetricsCollector metricsCollector,
boolean all) |
void |
incrementSnapshotObserverChoreTime(long time) |
void |
incrementSnapshotObserverSnapshotComputationTime(long time) |
void |
incrementSnapshotObserverSnapshotFetchTime(long time) |
void |
incrementSpaceQuotaObserverChoreTime(long time) |
void |
updateNumCurrentSpaceQuotaRegionSizeReports(long numCurrentRegionSizeReports) |
void |
updateNumNamespacesInSpaceQuotaViolation(long numNamespacesInViolation) |
void |
updateNumSpaceQuotas(long numSpaceQuotas) |
void |
updateNumTablesInSpaceQuotaViolation(long numTablesInViolation) |
decGauge, getMetricsContext, getMetricsDescription, getMetricsJmxContext, getMetricsName, getMetricsRegistry, incCounters, incGauge, init, removeMetric, setGauge, updateHistogrampublic MetricsMasterQuotaSourceImpl(org.apache.hadoop.hbase.master.MetricsMasterWrapper wrapper)
public void updateNumSpaceQuotas(long numSpaceQuotas)
updateNumSpaceQuotas in interface org.apache.hadoop.hbase.master.MetricsMasterQuotaSourcepublic void updateNumTablesInSpaceQuotaViolation(long numTablesInViolation)
updateNumTablesInSpaceQuotaViolation in interface org.apache.hadoop.hbase.master.MetricsMasterQuotaSourcepublic void updateNumNamespacesInSpaceQuotaViolation(long numNamespacesInViolation)
updateNumNamespacesInSpaceQuotaViolation in interface org.apache.hadoop.hbase.master.MetricsMasterQuotaSourcepublic void updateNumCurrentSpaceQuotaRegionSizeReports(long numCurrentRegionSizeReports)
updateNumCurrentSpaceQuotaRegionSizeReports in interface org.apache.hadoop.hbase.master.MetricsMasterQuotaSourcepublic void incrementSpaceQuotaObserverChoreTime(long time)
incrementSpaceQuotaObserverChoreTime in interface org.apache.hadoop.hbase.master.MetricsMasterQuotaSourcepublic void incrementSnapshotObserverChoreTime(long time)
incrementSnapshotObserverChoreTime in interface org.apache.hadoop.hbase.master.MetricsMasterQuotaSourcepublic void getMetrics(org.apache.hadoop.metrics2.MetricsCollector metricsCollector,
boolean all)
getMetrics in interface org.apache.hadoop.metrics2.MetricsSourcegetMetrics in class BaseSourceImplpublic void incrementSnapshotObserverSnapshotComputationTime(long time)
incrementSnapshotObserverSnapshotComputationTime in interface org.apache.hadoop.hbase.master.MetricsMasterQuotaSourcepublic void incrementSnapshotObserverSnapshotFetchTime(long time)
incrementSnapshotObserverSnapshotFetchTime in interface org.apache.hadoop.hbase.master.MetricsMasterQuotaSourceCopyright © 2007–2020 The Apache Software Foundation. All rights reserved.