public class ReplicationSinkMetrics extends Object implements org.apache.hadoop.metrics.Updater
Modifier and Type | Field and Description |
---|---|
MetricsRate |
appliedBatchesRate
Rate of batches (of operations) applied by the sink
|
MetricsRate |
appliedOpsRate
Rate of operations applied by the sink
|
Constructor and Description |
---|
ReplicationSinkMetrics()
Constructor used to register the metrics
|
Modifier and Type | Method and Description |
---|---|
void |
doUpdates(org.apache.hadoop.metrics.MetricsContext metricsContext) |
void |
setAgeOfLastAppliedOp(long timestamp)
Set the age of the last edit that was applied
|
public final MetricsRate appliedOpsRate
public final MetricsRate appliedBatchesRate
public ReplicationSinkMetrics()
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
Copyright © 2014 The Apache Software Foundation. All Rights Reserved.