Class MetricsReplicationGlobalSourceSourceImpl
java.lang.Object
org.apache.hadoop.hbase.replication.regionserver.MetricsReplicationGlobalSourceSourceImpl
- All Implemented Interfaces:
BaseSource,MetricsReplicationGlobalSourceSource,MetricsReplicationSourceSource
@Private
public class MetricsReplicationGlobalSourceSourceImpl
extends Object
implements MetricsReplicationGlobalSourceSource
-
Field Summary
FieldsModifier and TypeFieldDescriptionprivate final MutableHistogramprivate final MutableFastCounterprivate final MutableFastCounterprivate final MutableFastCounterprivate final MutableFastCounterprivate static final Stringprivate final MutableFastCounterprivate final MutableFastCounterprivate final MutableFastCounterprivate final MutableFastCounterprivate final MetricsReplicationSourceImplprivate final MutableFastCounterprivate final MutableFastCounterprivate final MutableFastCounterprivate final MutableFastCounterprivate final org.apache.hadoop.metrics2.lib.MutableGaugeLongprivate final org.apache.hadoop.metrics2.lib.MutableGaugeLongprivate final org.apache.hadoop.metrics2.lib.MutableGaugeIntprivate final MutableFastCounterprivate final MutableFastCounterprivate final MutableFastCounterprivate final MutableFastCounterprivate final org.apache.hadoop.metrics2.lib.MutableGaugeLongFields inherited from interface org.apache.hadoop.hbase.metrics.BaseSource
HBASE_METRICS_SYSTEM_NAMEFields inherited from interface org.apache.hadoop.hbase.replication.regionserver.MetricsReplicationGlobalSourceSource
SOURCE_WAL_READER_EDITS_BUFFERFields inherited from interface org.apache.hadoop.hbase.replication.regionserver.MetricsReplicationSourceSource
SOURCE_AGE_OF_LAST_SHIPPED_OP, SOURCE_CLOSED_LOGS_WITH_UNKNOWN_LENGTH, SOURCE_COMPLETED_LOGS, SOURCE_COMPLETED_RECOVERY_QUEUES, SOURCE_FAILED_BATCHES, SOURCE_FAILED_RECOVERY_QUEUES, SOURCE_INITIALIZING, SOURCE_LOG_EDITS_FILTERED, SOURCE_LOG_READ_IN_BYTES, SOURCE_LOG_READ_IN_EDITS, SOURCE_REPEATED_LOG_FILE_BYTES, SOURCE_RESTARTED_LOG_READING, SOURCE_SHIPPED_BATCHES, SOURCE_SHIPPED_BYTES, SOURCE_SHIPPED_HFILES, SOURCE_SHIPPED_OPS, SOURCE_SIZE_OF_HFILE_REFS_QUEUE, SOURCE_SIZE_OF_LOG_QUEUE, SOURCE_UNCLEANLY_CLOSED_IGNORED_IN_BYTES, SOURCE_UNCLEANLY_CLOSED_LOGS -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionvoidclear()voidSubtract some amount from a gauge.voiddecrSizeOfHFileRefsQueue(long size) voiddecrSizeOfLogQueue(int size) voidlonglongGet the metrics context.Get the description of what this source exposes.Get the name of the context in JMX that this source will be exposed through.Get the name of the metrics that are being exported by this source.longlongintintlonglonglongReturns the size, in bytes, of edits held in memory to be replicated across all peers.voidincCounters(String counterName, long delta) Add some amount to a counter.voidAdd some amount to a gauge.voidincrBatchesShipped(int batches) voidincrBytesSkippedInUncleanlyClosedWALs(long bytes) voidvoidvoidvoidvoidincrHFilesShipped(long hfiles) voidincrLogEditsFiltered(long size) voidincrLogReadInBytes(long size) voidincrLogReadInEdits(long size) voidincrOpsShipped(long ops) voidincrRepeatedFileBytes(long bytes) voidvoidincrShippedBytes(long size) voidincrSizeOfHFileRefsQueue(long size) voidincrSizeOfLogQueue(int size) voidvoidvoidvoidinit()Clear out the metrics and re-prepare the source.voidremoveMetric(String key) Remove a metric and no longer announce it.voidSet a gauge to a specific value.voidsetLastShippedAge(long age) voidsetOldestWalAge(long age) voidsetWALReaderEditsBufferBytes(long usage) Sets the total usage of memory used by edits in memory read from WALs.voidupdateHistogram(String name, long value) Add some value to a histogram.Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitMethods inherited from interface org.apache.hadoop.hbase.metrics.BaseSource
getMetricRegistryInfo
-
Field Details
-
KEY_PREFIX
- See Also:
-
rms
-
ageOfLastShippedOpHist
-
sizeOfLogQueueGauge
-
logReadInEditsCounter
-
walEditsFilteredCounter
-
shippedBatchesCounter
-
failedBatchesCounter
-
shippedOpsCounter
-
shippedBytesCounter
-
logReadInBytesCounter
-
shippedHFilesCounter
-
sizeOfHFileRefsQueueGauge
-
unknownFileLengthForClosedWAL
-
uncleanlyClosedWAL
-
uncleanlyClosedSkippedBytes
-
restartWALReading
-
repeatedFileBytes
-
completedWAL
-
completedRecoveryQueue
-
failedRecoveryQueue
-
walReaderBufferUsageBytes
-
sourceInitializing
-
-
Constructor Details
-
MetricsReplicationGlobalSourceSourceImpl
-
-
Method Details
-
setLastShippedAge
- Specified by:
setLastShippedAgein interfaceMetricsReplicationSourceSource
-
incrSizeOfLogQueue
- Specified by:
incrSizeOfLogQueuein interfaceMetricsReplicationSourceSource
-
decrSizeOfLogQueue
- Specified by:
decrSizeOfLogQueuein interfaceMetricsReplicationSourceSource
-
incrLogReadInEdits
- Specified by:
incrLogReadInEditsin interfaceMetricsReplicationSourceSource
-
incrLogEditsFiltered
- Specified by:
incrLogEditsFilteredin interfaceMetricsReplicationSourceSource
-
incrBatchesShipped
- Specified by:
incrBatchesShippedin interfaceMetricsReplicationSourceSource
-
incrFailedBatches
- Specified by:
incrFailedBatchesin interfaceMetricsReplicationSourceSource
-
incrOpsShipped
- Specified by:
incrOpsShippedin interfaceMetricsReplicationSourceSource
-
incrShippedBytes
- Specified by:
incrShippedBytesin interfaceMetricsReplicationSourceSource
-
incrLogReadInBytes
- Specified by:
incrLogReadInBytesin interfaceMetricsReplicationSourceSource
-
clear
- Specified by:
clearin interfaceMetricsReplicationSourceSource
-
getLastShippedAge
- Specified by:
getLastShippedAgein interfaceMetricsReplicationSourceSource
-
incrHFilesShipped
- Specified by:
incrHFilesShippedin interfaceMetricsReplicationSourceSource
-
incrSizeOfHFileRefsQueue
- Specified by:
incrSizeOfHFileRefsQueuein interfaceMetricsReplicationSourceSource
-
decrSizeOfHFileRefsQueue
- Specified by:
decrSizeOfHFileRefsQueuein interfaceMetricsReplicationSourceSource
-
getSizeOfLogQueue
- Specified by:
getSizeOfLogQueuein interfaceMetricsReplicationSourceSource
-
incrUnknownFileLengthForClosedWAL
- Specified by:
incrUnknownFileLengthForClosedWALin interfaceMetricsReplicationSourceSource
-
incrUncleanlyClosedWALs
- Specified by:
incrUncleanlyClosedWALsin interfaceMetricsReplicationSourceSource
-
getUncleanlyClosedWALs
- Specified by:
getUncleanlyClosedWALsin interfaceMetricsReplicationSourceSource
-
incrBytesSkippedInUncleanlyClosedWALs
- Specified by:
incrBytesSkippedInUncleanlyClosedWALsin interfaceMetricsReplicationSourceSource
-
incrRestartedWALReading
- Specified by:
incrRestartedWALReadingin interfaceMetricsReplicationSourceSource
-
incrRepeatedFileBytes
- Specified by:
incrRepeatedFileBytesin interfaceMetricsReplicationSourceSource
-
incrCompletedWAL
- Specified by:
incrCompletedWALin interfaceMetricsReplicationSourceSource
-
incrCompletedRecoveryQueue
- Specified by:
incrCompletedRecoveryQueuein interfaceMetricsReplicationSourceSource
-
incrFailedRecoveryQueue
- Specified by:
incrFailedRecoveryQueuein interfaceMetricsReplicationSourceSource
-
setOldestWalAge
- Specified by:
setOldestWalAgein interfaceMetricsReplicationSourceSource
-
getOldestWalAge
- Specified by:
getOldestWalAgein interfaceMetricsReplicationSourceSource
-
incrSourceInitializing
- Specified by:
incrSourceInitializingin interfaceMetricsReplicationSourceSource
-
decrSourceInitializing
- Specified by:
decrSourceInitializingin interfaceMetricsReplicationSourceSource
-
getSourceInitializing
- Specified by:
getSourceInitializingin interfaceMetricsReplicationSourceSource
-
init
Description copied from interface:BaseSourceClear out the metrics and re-prepare the source.- Specified by:
initin interfaceBaseSource
-
setGauge
Description copied from interface:BaseSourceSet a gauge to a specific value.- Specified by:
setGaugein interfaceBaseSource- Parameters:
gaugeName- the name of the gaugevalue- the value
-
incGauge
Description copied from interface:BaseSourceAdd some amount to a gauge.- Specified by:
incGaugein interfaceBaseSource- Parameters:
gaugeName- the name of the gaugedelta- the amount to change the gauge by.
-
decGauge
Description copied from interface:BaseSourceSubtract some amount from a gauge.- Specified by:
decGaugein interfaceBaseSource- Parameters:
gaugeName- the name of the gaugedelta- the amount to change the gauge by.
-
removeMetric
Description copied from interface:BaseSourceRemove a metric and no longer announce it.- Specified by:
removeMetricin interfaceBaseSource- Parameters:
key- Name of the gauge to remove.
-
incCounters
Description copied from interface:BaseSourceAdd some amount to a counter.- Specified by:
incCountersin interfaceBaseSource- Parameters:
counterName- the name of the counterdelta- the amount to change the counter by.
-
updateHistogram
Description copied from interface:BaseSourceAdd some value to a histogram.- Specified by:
updateHistogramin interfaceBaseSource- Parameters:
name- the name of the histogramvalue- the value to add to the histogram
-
getMetricsContext
Description copied from interface:BaseSourceGet the metrics context. For hadoop metrics2 system this is usually an all lowercased string. eg. regionserver, master, thriftserver- Specified by:
getMetricsContextin interfaceBaseSource- Returns:
- The string context used to register this source to hadoop's metrics2 system.
-
getMetricsDescription
Description copied from interface:BaseSourceGet the description of what this source exposes.- Specified by:
getMetricsDescriptionin interfaceBaseSource
-
getMetricsJmxContext
Description copied from interface:BaseSourceGet the name of the context in JMX that this source will be exposed through. This is in ObjectName format. With the default context being Hadoop -> HBase- Specified by:
getMetricsJmxContextin interfaceBaseSource
-
getMetricsName
Description copied from interface:BaseSourceGet the name of the metrics that are being exported by this source. Eg. IPC, GC, WAL- Specified by:
getMetricsNamein interfaceBaseSource
-
getWALEditsRead
- Specified by:
getWALEditsReadin interfaceMetricsReplicationSourceSource
-
getShippedOps
- Specified by:
getShippedOpsin interfaceMetricsReplicationSourceSource
-
getEditsFiltered
- Specified by:
getEditsFilteredin interfaceMetricsReplicationSourceSource
-
setWALReaderEditsBufferBytes
Description copied from interface:MetricsReplicationGlobalSourceSourceSets the total usage of memory used by edits in memory read from WALs. The memory represented by this usage measure is across peers/sources. For example, we may batch the same WAL edits multiple times for the sake of replicating them to multiple peers..- Specified by:
setWALReaderEditsBufferBytesin interfaceMetricsReplicationGlobalSourceSource- Parameters:
usage- The memory used by edits in bytes
-
getWALReaderEditsBufferBytes
Description copied from interface:MetricsReplicationGlobalSourceSourceReturns the size, in bytes, of edits held in memory to be replicated across all peers.- Specified by:
getWALReaderEditsBufferBytesin interfaceMetricsReplicationGlobalSourceSource
-