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
Modifier and TypeFieldDescriptionstatic final String
static final String
static final String
static final String
static final String
static final String
static final String
static final String
static final String
static final String
static final String
The name of the metrics context that metrics will be under.static final String
Descriptionstatic final String
The name of the metrics context that metrics will be under in jmxstatic final String
The name of the metricsstatic final String
static final String
static final String
static final String
static final String
static final String
static final String
static final String
static final String
static final String
static final String
static final String
static final String
static final String
Fields inherited from interface org.apache.hadoop.hbase.metrics.BaseSource
HBASE_METRICS_SYSTEM_NAME
-
Method Summary
Modifier and TypeMethodDescriptionlong
long
void
incrementAppendCount
(TableName tableName) Increment the count of wal appendsvoid
incrementAppendSize
(TableName tableName, long size) Add the append size.void
incrementAppendTime
(long time) Add the time it took to append.void
void
void
void
void
Increment the number of appends that were slowvoid
void
Increment the number of successful log roll requests.void
incrementSyncTime
(long time) Add the time it took to sync the wal.void
incrementWrittenBytes
(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()
-