Interface OperationStatsCollector
-
public interface OperationStatsCollectorImplementations of this can use to mark the relevant statistics.
-
-
Field Summary
Fields Modifier and Type Field Description static OperationStatsCollectorNOOP
-
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description voidfinishFailure()Increment the finishFailure countervoidstart()Increment the start countervoidupdateBlobReferencesSize(long size)Update the size of blob referencesvoidupdateDuration(long time, java.util.concurrent.TimeUnit timeUnit)Increment the duration timervoidupdateMarkDuration(long time, java.util.concurrent.TimeUnit timeUnit)Increment the mark phase duration timervoidupdateNumBlobReferences(long num)Update the number of blob referencesvoidupdateNumCandidates(long num)Update the number of candidates foundvoidupdateNumDeleted(long num)Update the number deletedvoidupdateSweepDuration(long time, java.util.concurrent.TimeUnit timeUnit)Increment the sweep phase duration timervoidupdateTotalSizeDeleted(long size)Update the size deleted
-
-
-
Field Detail
-
NOOP
static final OperationStatsCollector NOOP
-
-
Method Detail
-
start
void start()
Increment the start counter
-
finishFailure
void finishFailure()
Increment the finishFailure counter
-
updateNumDeleted
void updateNumDeleted(long num)
Update the number deleted- Parameters:
num-
-
updateNumCandidates
void updateNumCandidates(long num)
Update the number of candidates found- Parameters:
num-
-
updateTotalSizeDeleted
void updateTotalSizeDeleted(long size)
Update the size deleted- Parameters:
size-
-
updateNumBlobReferences
void updateNumBlobReferences(long num)
Update the number of blob references- Parameters:
num-
-
updateBlobReferencesSize
void updateBlobReferencesSize(long size)
Update the size of blob references- Parameters:
size-
-
updateDuration
void updateDuration(long time, java.util.concurrent.TimeUnit timeUnit)Increment the duration timer- Parameters:
time- time recorded for the operationtimeUnit- unit of time
-
updateMarkDuration
void updateMarkDuration(long time, java.util.concurrent.TimeUnit timeUnit)Increment the mark phase duration timer- Parameters:
time- time recorded for the operationtimeUnit- unit of time
-
updateSweepDuration
void updateSweepDuration(long time, java.util.concurrent.TimeUnit timeUnit)Increment the sweep phase duration timer- Parameters:
time- time recorded for the operationtimeUnit- unit of time
-
-