|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectorg.apache.hadoop.hbase.replication.regionserver.ReplicationSourceMetrics
public class ReplicationSourceMetrics
This class is for maintaining the various replication statistics for a source and publishing them through the metrics interfaces.
Field Summary | |
---|---|
MetricsRate |
logEditsFilteredRate
Rate of log entries filtered by the source |
MetricsRate |
logEditsReadRate
Rate of log entries (can be multiple Puts) read from the logs |
MetricsRate |
shippedBatchesRate
Rate of shipped batches by the source |
MetricsRate |
shippedOpsRate
Rate of shipped operations by the source |
org.apache.hadoop.metrics.util.MetricsIntValue |
sizeOfLogQueue
Current size of the queue of logs to replicate, excluding the one being processed at the moment |
Constructor Summary | |
---|---|
ReplicationSourceMetrics(String id)
Constructor used to register the metrics |
Method Summary | |
---|---|
void |
doUpdates(org.apache.hadoop.metrics.MetricsContext metricsContext)
|
void |
refreshAgeOfLastShippedOp()
Convenience method to use the last given timestamp to refresh the age of the last edit. |
void |
setAgeOfLastShippedOp(long timestamp)
Set the age of the last edit that was shipped |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Field Detail |
---|
public final MetricsRate shippedOpsRate
public final MetricsRate shippedBatchesRate
public final MetricsRate logEditsReadRate
public final MetricsRate logEditsFilteredRate
public final org.apache.hadoop.metrics.util.MetricsIntValue sizeOfLogQueue
Constructor Detail |
---|
public ReplicationSourceMetrics(String id)
id
- Name of the source this class is monitoringMethod Detail |
---|
public void setAgeOfLastShippedOp(long timestamp)
timestamp
- write time of the editpublic void refreshAgeOfLastShippedOp()
public void doUpdates(org.apache.hadoop.metrics.MetricsContext metricsContext)
doUpdates
in interface org.apache.hadoop.metrics.Updater
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |