@InterfaceAudience.Private public class MetricsSink extends Object
Constructor and Description |
---|
MetricsSink() |
Modifier and Type | Method and Description |
---|---|
void |
applyBatch(long batchSize)
Convience method to change metrics when a batch of operations are applied.
|
void |
applyBatch(long batchSize,
long hfileSize)
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
|
public long setAgeOfLastAppliedOp(long timestamp)
timestamp
- The timestamp of the last operation applied.public long refreshAgeOfLastAppliedOp()
public void applyBatch(long batchSize)
batchSize
- public void applyBatch(long batchSize, long hfileSize)
batchSize
- total number of mutations that are applied/replicatedhfileSize
- total number of hfiles that are applied/replicatedpublic long getAgeOfLastAppliedOp()
public long getTimeStampOfLastAppliedOp()
Copyright © 2007–2019 The Apache Software Foundation. All rights reserved.