|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectorg.apache.hadoop.hbase.replication.regionserver.MetricsSink
@InterfaceAudience.Private public class MetricsSink
This class is for maintaining the various replication statistics for a sink and publishing them through the metrics interfaces.
| Field Summary | |
|---|---|
static String |
SINK_AGE_OF_LAST_APPLIED_OP
|
static String |
SINK_APPLIED_BATCHES
|
static String |
SINK_APPLIED_OPS
|
| Constructor Summary | |
|---|---|
MetricsSink()
|
|
| Method Summary | |
|---|---|
void |
applyBatch(long batchSize)
Convience method to change metrics when a batch of operations are applied. |
long |
getAgeOfLastAppliedOp()
Get the Age of Last Applied Op |
long |
getTimeStampOfLastAppliedOp()
Get the TimeStampOfLastAppliedOp. |
long |
refreshAgeOfLastAppliedOp()
Refreshing the age makes sure the value returned is the actual one and not the one set a replication time |
long |
setAgeOfLastAppliedOp(long timestamp)
Set the age of the last applied operation |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Field Detail |
|---|
public static final String SINK_AGE_OF_LAST_APPLIED_OP
public static final String SINK_APPLIED_BATCHES
public static final String SINK_APPLIED_OPS
| Constructor Detail |
|---|
public MetricsSink()
| Method Detail |
|---|
public long setAgeOfLastAppliedOp(long timestamp)
timestamp - The timestamp of the last operation applied.
public long refreshAgeOfLastAppliedOp()
public void applyBatch(long batchSize)
batchSize - public long getAgeOfLastAppliedOp()
public long getTimeStampOfLastAppliedOp()
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||