Package org.apache.hadoop.hbase.master
Class MetricsMaster
java.lang.Object
org.apache.hadoop.hbase.master.MetricsMaster
This class is for maintaining the various master statistics and publishing them through the
metrics interfaces.
This class has a number of metrics variables that are publicly accessible; these variables (objects) have methods to update their values.
-
Field Summary
FieldsModifier and TypeFieldDescriptionprivate static final org.slf4j.Loggerprivate MetricsMasterProcSourceprivate MetricsMasterQuotaSourceprivate MetricsMasterSourceprivate ProcedureMetrics -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionstatic ProcedureMetricsThis is utility function that convertsOperationMetricstoProcedureMetrics.Returns Set of metrics for assign procedurevoidincrementQuotaObserverTime(long executionTime) Sets the execution time of a period of the QuotaObserverChore.voidincrementRequests(long inc) voidincrementSnapshotFetchTime(long executionTime) Sets the execution time to fetch the mapping of snapshots to originating table.voidincrementSnapshotObserverTime(long executionTime) Sets the execution time of a period of theSnapshotQuotaObserverChore.voidincrementSnapshotSizeComputationTime(long executionTime) Sets the execution time to compute the size of a single snapshot.voidsetNumNamespacesInSpaceQuotaViolation(long numNamespacesInViolation) Sets the number of namespaces in violation of a space quota.voidsetNumRegionSizeReports(long numRegionReports) Sets the number of region size reports the master currently has in memory.voidsetNumSpaceQuotas(long numSpaceQuotas) Sets the number of space quotas defined.voidsetNumTableInSpaceQuotaViolation(long numTablesInViolation) Sets the number of table in violation of a space quota.
-
Field Details
-
LOG
-
masterSource
-
masterProcSource
-
masterQuotaSource
-
serverCrashProcMetrics
-
-
Constructor Details
-
MetricsMaster
-
-
Method Details
-
getMetricsSource
-
getMetricsProcSource
-
getMetricsQuotaSource
-
incrementRequests
- Parameters:
inc- How much to add to requests.
-
setNumSpaceQuotas
Sets the number of space quotas defined. -
setNumTableInSpaceQuotaViolation
Sets the number of table in violation of a space quota. -
setNumNamespacesInSpaceQuotaViolation
Sets the number of namespaces in violation of a space quota. -
setNumRegionSizeReports
Sets the number of region size reports the master currently has in memory. -
incrementQuotaObserverTime
Sets the execution time of a period of the QuotaObserverChore.- Parameters:
executionTime- The execution time in milliseconds.- See Also:
-
getServerCrashProcMetrics
Returns Set of metrics for assign procedure -
convertToProcedureMetrics
This is utility function that convertsOperationMetricstoProcedureMetrics. NOTE: Procedure framework in hbase-procedure module accesses metrics common to most procedures throughProcedureMetricsinterface. Metrics source classes in hbase-hadoop-compat module provides similar interfaceOperationMetricsthat 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. -
incrementSnapshotObserverTime
Sets the execution time of a period of theSnapshotQuotaObserverChore. -
incrementSnapshotSizeComputationTime
Sets the execution time to compute the size of a single snapshot. -
incrementSnapshotFetchTime
Sets the execution time to fetch the mapping of snapshots to originating table.
-