Interface MetricsWALSource
- All Superinterfaces:
BaseSource
- All Known Implementing Classes:
MetricsWALSourceImpl
Interface of the source that will export metrics about the region server's WAL.
-
Field Summary
FieldsModifier and TypeFieldDescriptionstatic final Stringstatic final Stringstatic final Stringstatic final Stringstatic final Stringstatic final Stringstatic final Stringstatic final Stringstatic final Stringstatic final Stringstatic final StringThe name of the metrics context that metrics will be under.static final StringDescriptionstatic final StringThe name of the metrics context that metrics will be under in jmxstatic final StringThe name of the metricsstatic final Stringstatic final Stringstatic final Stringstatic final Stringstatic final Stringstatic final Stringstatic final Stringstatic final Stringstatic final Stringstatic final Stringstatic final Stringstatic final Stringstatic final Stringstatic final StringFields inherited from interface org.apache.hadoop.hbase.metrics.BaseSource
HBASE_METRICS_SYSTEM_NAME -
Method Summary
Modifier and TypeMethodDescriptionlonglongvoidincrementAppendCount(TableName tableName) Increment the count of wal appendsvoidincrementAppendSize(TableName tableName, long size) Add the append size.voidincrementAppendTime(long time) Add the time it took to append.voidvoidvoidvoidvoidIncrement the number of appends that were slowvoidvoidIncrement the number of successful log roll requests.voidincrementSyncTime(long time) Add the time it took to sync the wal.voidincrementWrittenBytes(long val) Methods inherited from interface org.apache.hadoop.hbase.metrics.BaseSource
decGauge, getMetricRegistryInfo, getMetricsContext, getMetricsDescription, getMetricsJmxContext, getMetricsName, incCounters, incGauge, init, removeMetric, setGauge, updateHistogram
-
Field Details
-
METRICS_NAME
The name of the metrics- See Also:
-
METRICS_CONTEXT
The name of the metrics context that metrics will be under.- See Also:
-
METRICS_DESCRIPTION
Description- See Also:
-
METRICS_JMX_CONTEXT
The name of the metrics context that metrics will be under in jmx- See Also:
-
APPEND_TIME
- See Also:
-
APPEND_TIME_DESC
- See Also:
-
APPEND_COUNT
- See Also:
-
APPEND_COUNT_DESC
- See Also:
-
APPEND_SIZE
- See Also:
-
APPEND_SIZE_DESC
- See Also:
-
SLOW_APPEND_COUNT
- See Also:
-
SLOW_APPEND_COUNT_DESC
- See Also:
-
SYNC_TIME
- See Also:
-
SYNC_TIME_DESC
- See Also:
-
ROLL_REQUESTED
- See Also:
-
ROLL_REQUESTED_DESC
- See Also:
-
ERROR_ROLL_REQUESTED
- See Also:
-
ERROR_ROLL_REQUESTED_DESC
- See Also:
-
LOW_REPLICA_ROLL_REQUESTED
- See Also:
-
LOW_REPLICA_ROLL_REQUESTED_DESC
- See Also:
-
SLOW_SYNC_ROLL_REQUESTED
- See Also:
-
SLOW_SYNC_ROLL_REQUESTED_DESC
- See Also:
-
SIZE_ROLL_REQUESTED
- See Also:
-
SIZE_ROLL_REQUESTED_DESC
- See Also:
-
WRITTEN_BYTES
- See Also:
-
WRITTEN_BYTES_DESC
- See Also:
-
SUCCESSFUL_LOG_ROLLS
- See Also:
-
SUCCESSFUL_LOG_ROLLS_DESC
- See Also:
-
-
Method Details
-
incrementAppendSize
Add the append size. -
incrementAppendTime
Add the time it took to append. -
incrementAppendCount
Increment the count of wal appends -
incrementSlowAppendCount
void incrementSlowAppendCount()Increment the number of appends that were slow -
incrementSyncTime
Add the time it took to sync the wal. -
incrementLogRollRequested
void incrementLogRollRequested() -
incrementErrorLogRoll
void incrementErrorLogRoll() -
incrementLowReplicationLogRoll
-
getSlowAppendCount
long getSlowAppendCount() -
incrementSlowSyncLogRoll
void incrementSlowSyncLogRoll() -
incrementSizeLogRoll
void incrementSizeLogRoll() -
incrementWrittenBytes
-
incrementSuccessfulLogRolls
void incrementSuccessfulLogRolls()Increment the number of successful log roll requests. -
getSuccessfulLogRolls
long getSuccessfulLogRolls()
-