Interface OperationStatsCollector
-
public interface OperationStatsCollector
Implementations of this can use to mark the relevant statistics.
-
-
Field Summary
Fields Modifier and Type Field Description static OperationStatsCollector
NOOP
-
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description void
finishFailure()
Increment the finishFailure countervoid
start()
Increment the start countervoid
updateDuration(long time, java.util.concurrent.TimeUnit timeUnit)
Increment the duration timervoid
updateMarkDuration(long time, java.util.concurrent.TimeUnit timeUnit)
Increment the mark phase duration timervoid
updateNumCandidates(long num)
Update the number of candidates foundvoid
updateNumDeleted(long num)
Update the number deletedvoid
updateSweepDuration(long time, java.util.concurrent.TimeUnit timeUnit)
Increment the sweep phase duration timervoid
updateTotalSizeDeleted(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
-
-
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
-
-