@InterfaceStability.Evolving @InterfaceAudience.Private public class MetricsMaster extends Object
This class has a number of metrics variables that are publicly accessible; these variables (objects) have methods to update their values.
| Constructor and Description |
|---|
MetricsMaster(org.apache.hadoop.hbase.master.MetricsMasterWrapper masterWrapper) |
| Modifier and Type | Method and Description |
|---|---|
static org.apache.hadoop.hbase.procedure2.ProcedureMetrics |
convertToProcedureMetrics(org.apache.hadoop.hbase.metrics.OperationMetrics metrics)
This is utility function that converts
OperationMetrics to ProcedureMetrics. |
org.apache.hadoop.hbase.master.MetricsMasterProcSource |
getMetricsProcSource() |
org.apache.hadoop.hbase.master.MetricsMasterQuotaSource |
getMetricsQuotaSource() |
org.apache.hadoop.hbase.master.MetricsMasterSource |
getMetricsSource() |
org.apache.hadoop.hbase.procedure2.ProcedureMetrics |
getServerCrashProcMetrics() |
void |
incrementQuotaObserverTime(long executionTime)
Sets the execution time of a period of the QuotaObserverChore.
|
void |
incrementRequests(long inc) |
void |
incrementSnapshotFetchTime(long executionTime)
Sets the execution time to fetch the mapping of snapshots to originating table.
|
void |
incrementSnapshotObserverTime(long executionTime)
Sets the execution time of a period of the
SnapshotQuotaObserverChore. |
void |
incrementSnapshotSizeComputationTime(long executionTime)
Sets the execution time to compute the size of a single snapshot.
|
void |
setNumNamespacesInSpaceQuotaViolation(long numNamespacesInViolation)
Sets the number of namespaces in violation of a space quota.
|
void |
setNumRegionSizeReports(long numRegionReports)
Sets the number of region size reports the master currently has in memory.
|
void |
setNumSpaceQuotas(long numSpaceQuotas)
Sets the number of space quotas defined.
|
void |
setNumTableInSpaceQuotaViolation(long numTablesInViolation)
Sets the number of table in violation of a space quota.
|
public MetricsMaster(org.apache.hadoop.hbase.master.MetricsMasterWrapper masterWrapper)
public org.apache.hadoop.hbase.master.MetricsMasterSource getMetricsSource()
public org.apache.hadoop.hbase.master.MetricsMasterProcSource getMetricsProcSource()
public org.apache.hadoop.hbase.master.MetricsMasterQuotaSource getMetricsQuotaSource()
public void incrementRequests(long inc)
inc - How much to add to requests.public void setNumSpaceQuotas(long numSpaceQuotas)
MetricsMasterQuotaSource.updateNumSpaceQuotas(long)public void setNumTableInSpaceQuotaViolation(long numTablesInViolation)
MetricsMasterQuotaSource.updateNumTablesInSpaceQuotaViolation(long)public void setNumNamespacesInSpaceQuotaViolation(long numNamespacesInViolation)
MetricsMasterQuotaSource.updateNumNamespacesInSpaceQuotaViolation(long)public void setNumRegionSizeReports(long numRegionReports)
MetricsMasterQuotaSource.updateNumCurrentSpaceQuotaRegionSizeReports(long)public void incrementQuotaObserverTime(long executionTime)
executionTime - The execution time in milliseconds.MetricsMasterQuotaSource.incrementSpaceQuotaObserverChoreTime(long)public org.apache.hadoop.hbase.procedure2.ProcedureMetrics getServerCrashProcMetrics()
public static org.apache.hadoop.hbase.procedure2.ProcedureMetrics convertToProcedureMetrics(org.apache.hadoop.hbase.metrics.OperationMetrics metrics)
OperationMetrics to ProcedureMetrics.
NOTE: Procedure framework in hbase-procedure module accesses metrics common to most procedures
through ProcedureMetrics interface. Metrics source classes in hbase-hadoop-compat
module provides similar interface OperationMetrics that contains metrics common to
most operations. As both hbase-procedure and hbase-hadoop-compat are lower level modules used
by hbase-server (this) module and there is no dependency between them, this method does the
required conversion.public void incrementSnapshotObserverTime(long executionTime)
SnapshotQuotaObserverChore.public void incrementSnapshotSizeComputationTime(long executionTime)
public void incrementSnapshotFetchTime(long executionTime)
Copyright © 2007–2020 The Apache Software Foundation. All rights reserved.