|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectorg.apache.hadoop.hbase.replication.regionserver.ReplicationSinkMetrics
public class ReplicationSinkMetrics
This class is for maintaining the various replication statistics for a sink and publishing them through the metrics interfaces.
Field Summary | |
---|---|
MetricsRate |
appliedBatchesRate
Rate of batches (of operations) applied by the sink |
MetricsRate |
appliedOpsRate
Rate of operations applied by the sink |
Constructor Summary | |
---|---|
ReplicationSinkMetrics()
Constructor used to register the metrics |
Method Summary | |
---|---|
void |
doUpdates(org.apache.hadoop.metrics.MetricsContext metricsContext)
|
void |
setAgeOfLastAppliedOp(long timestamp)
Set the age of the last edit that was applied |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Field Detail |
---|
public final MetricsRate appliedOpsRate
public final MetricsRate appliedBatchesRate
Constructor Detail |
---|
public ReplicationSinkMetrics()
Method Detail |
---|
public void setAgeOfLastAppliedOp(long timestamp)
timestamp
- write time of the editpublic 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 |