Class MetricsReplicationSourceSourceImpl
java.lang.Object
org.apache.hadoop.hbase.replication.regionserver.MetricsReplicationSourceSourceImpl
- All Implemented Interfaces:
BaseSource,MetricsReplicationSourceSource
@Private
public class MetricsReplicationSourceSourceImpl
extends Object
implements MetricsReplicationSourceSource
-
Field Summary
FieldsModifier and TypeFieldDescriptionprivate final MutableHistogramprivate final Stringprivate final Stringprivate final Stringprivate final MutableFastCounterprivate final MutableFastCounterprivate final MutableFastCounterprivate final Stringprivate final Stringprivate Stringprivate final Stringprivate final MutableFastCounterprivate final Stringprivate final MutableFastCounterprivate final Stringprivate final org.apache.hadoop.metrics2.lib.MutableGaugeLongprivate final Stringprivate final Stringprivate final MutableFastCounterprivate final Stringprivate final MutableFastCounterprivate final MetricsReplicationSourceImplprivate final MutableFastCounterprivate final Stringprivate final MutableFastCounterprivate final Stringprivate final MutableFastCounterprivate final Stringprivate final MutableFastCounterprivate final StringDeprecated.since 1.3.0.private final MutableFastCounterprivate final Stringprivate final org.apache.hadoop.metrics2.lib.MutableGaugeLongprivate final Stringprivate final org.apache.hadoop.metrics2.lib.MutableGaugeLongprivate final Stringprivate final org.apache.hadoop.metrics2.lib.MutableGaugeIntprivate final Stringprivate final Stringprivate final MutableFastCounterprivate final MutableFastCounterprivate final Stringprivate final MutableFastCounterprivate final Stringprivate final MutableFastCounterFields inherited from interface org.apache.hadoop.hbase.metrics.BaseSource
HBASE_METRICS_SYSTEM_NAMEFields 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_KBS, 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
ConstructorsConstructorDescription -
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.longlongintintlonglongvoidincCounters(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) 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
-
rms
-
id
-
sizeOfLogQueueKey
-
ageOfLastShippedOpKey
-
logReadInEditsKey
-
logEditsFilteredKey
-
shippedBatchesKey
-
shippedOpsKey
-
failedBatchesKey
-
keyPrefix
-
shippedKBsKey
Deprecated.since 1.3.0. UseshippedBytesKeyinstead. -
shippedBytesKey
-
logReadInBytesKey
-
shippedHFilesKey
-
sizeOfHFileRefsQueueKey
-
oldestWalAgeKey
-
sourceInitializingKey
-
ageOfLastShippedOpHist
-
sizeOfLogQueueGauge
-
logReadInEditsCounter
-
walEditsFilteredCounter
-
shippedBatchesCounter
-
failedBatchesCounter
-
shippedOpsCounter
-
shippedKBsCounter
-
shippedBytesCounter
-
logReadInBytesCounter
-
shippedHFilesCounter
-
sizeOfHFileRefsQueueGauge
-
unknownFileLengthKey
-
uncleanlyClosedKey
-
uncleanlySkippedBytesKey
-
restartedKey
-
repeatedBytesKey
-
completedLogsKey
-
completedRecoveryKey
-
unknownFileLengthForClosedWAL
-
uncleanlyClosedWAL
-
uncleanlyClosedSkippedBytes
-
restartWALReading
-
repeatedFileBytes
-
completedWAL
-
completedRecoveryQueue
-
oldestWalAge
-
sourceInitializing
-
-
Constructor Details
-
MetricsReplicationSourceSourceImpl
-
-
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
-
getSourceInitializing
- Specified by:
getSourceInitializingin interfaceMetricsReplicationSourceSource
-
decrSourceInitializing
- Specified by:
decrSourceInitializingin 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
-