Class CoreActivityInstrumentation

    • Method Summary

      Modifier and Type Method Description
      com.codahale.metrics.Timer getCyclesResponseTimerOrNull()
      The cycles response timer measures the total response time from the scheduled time an operation should start to when it is completed.
      com.codahale.metrics.Timer getOrCreateCyclesServiceTimer()
      The cycles service timer measures how long it takes to complete a cycle of work.
      com.codahale.metrics.Timer getOrCreateInputTimer()
      The input timer measures how long it takes to get the cycle value to be used for an operation.
      com.codahale.metrics.Counter getOrCreatePendingOpCounter()
      The pending ops counter keeps track of how many ops are submitted or in-flight, but which haven't been completed yet.
      com.codahale.metrics.Timer getOrCreatePhasesServiceTimer()
      The phases service timer measures how long it takes to complete a phase of work.
      com.codahale.metrics.Timer getOrCreateStridesServiceTimer()
      The strides service timer measures how long it takes to complete a stride of work.
      com.codahale.metrics.Timer getPhasesResponseTimerOrNull()
      The phases response timer measures the total response time from the scheduled time a phase should start to when it is completed.
      com.codahale.metrics.Timer getStridesResponseTimerOrNull()
      The strides response timer measures the total response time from the scheduled time a stride should start to when it completed.
      • Methods inherited from class java.lang.Object

        clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
    • Constructor Detail

      • CoreActivityInstrumentation

        public CoreActivityInstrumentation​(Activity activity)
    • Method Detail

      • getOrCreateInputTimer

        public com.codahale.metrics.Timer getOrCreateInputTimer()
        Description copied from interface: ActivityInstrumentation
        The input timer measures how long it takes to get the cycle value to be used for an operation.
        Specified by:
        getOrCreateInputTimer in interface ActivityInstrumentation
        Returns:
        A new or existing Timer
      • getStridesResponseTimerOrNull

        public com.codahale.metrics.Timer getStridesResponseTimerOrNull()
        Description copied from interface: ActivityInstrumentation
        The strides response timer measures the total response time from the scheduled time a stride should start to when it completed. Stride scheduling is only defined when it is implied by a stride rate limiter, so this method should return null if there is no strides rate limiter.
        Specified by:
        getStridesResponseTimerOrNull in interface ActivityInstrumentation
        Returns:
        A new or existing Timer if appropriate, else null
      • getCyclesResponseTimerOrNull

        public com.codahale.metrics.Timer getCyclesResponseTimerOrNull()
        Description copied from interface: ActivityInstrumentation
        The cycles response timer measures the total response time from the scheduled time an operation should start to when it is completed. Cycle scheduling is only defined when it is implied by a cycle rate limiter, so this method should return null if there is no cycles rate limiter.
        Specified by:
        getCyclesResponseTimerOrNull in interface ActivityInstrumentation
        Returns:
        A new or existing Timer if appropriate, else null
      • getPhasesResponseTimerOrNull

        public com.codahale.metrics.Timer getPhasesResponseTimerOrNull()
        Description copied from interface: ActivityInstrumentation
        The phases response timer measures the total response time from the scheduled time a phase should start to when it is completed. Phase scheduling is only defined when it is implied by a phase rate limiter, so this method should return null if there is no phases rate limiter.
        Specified by:
        getPhasesResponseTimerOrNull in interface ActivityInstrumentation
        Returns:
        A new or existing Timer if appropriate, else null
      • getOrCreatePendingOpCounter

        public com.codahale.metrics.Counter getOrCreatePendingOpCounter()
        Description copied from interface: ActivityInstrumentation
        The pending ops counter keeps track of how many ops are submitted or in-flight, but which haven't been completed yet.
        Specified by:
        getOrCreatePendingOpCounter in interface ActivityInstrumentation
        Returns:
        A new or existing Counter