Interface OperationStatsCollector


  • public interface OperationStatsCollector
    Implementations of this can use to mark the relevant statistics.
    • 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 operation
        timeUnit - 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 operation
        timeUnit - 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 operation
        timeUnit - unit of time