Interface OpStatsLogger

    • Method Detail

      • registerFailedEvent

        void registerFailedEvent​(long eventLatency,
                                 java.util.concurrent.TimeUnit unit)
        Increment the failed op counter with the given eventLatency.
        Parameters:
        eventLatency - The event latency
        unit -
      • registerSuccessfulEvent

        void registerSuccessfulEvent​(long eventLatency,
                                     java.util.concurrent.TimeUnit unit)
        An operation succeeded with the given eventLatency. Update stats to reflect the same
        Parameters:
        eventLatency - The event latency
        unit -
      • registerSuccessfulValue

        void registerSuccessfulValue​(long value)
        An operation with the given value succeeded.
        Parameters:
        value -
      • registerFailedValue

        void registerFailedValue​(long value)
        An operation with the given value failed.
      • toOpStatsData

        OpStatsData toOpStatsData()
        Returns:
        Returns an OpStatsData object with necessary values. We need this function to support JMX exports. This should be deprecated sometime in the near future. populated.
      • clear

        void clear()
        Clear stats for this operation.