Class DutyCycleStallTracker

java.lang.Object
io.aeron.driver.DutyCycleTracker
io.aeron.driver.status.DutyCycleStallTracker

public class DutyCycleStallTracker extends DutyCycleTracker
Duty cycle tracker that detects when a cycle exceeds a threshold and tracks max cycle time reporting both through counters.
  • Constructor Details

    • DutyCycleStallTracker

      public DutyCycleStallTracker(AtomicCounter maxCycleTime, AtomicCounter cycleTimeThresholdExceededCount, long cycleTimeThresholdNs)
      Create a tracker to track max cycle time and excesses of a threshold.
      Parameters:
      maxCycleTime - counter for tracking.
      cycleTimeThresholdExceededCount - counter for tracking.
      cycleTimeThresholdNs - to use for tracking excesses.
  • Method Details

    • maxCycleTime

      public AtomicCounter maxCycleTime()
      Get max cycle time counter.
      Returns:
      max cycle time counter.
    • cycleTimeThresholdExceededCount

      public AtomicCounter cycleTimeThresholdExceededCount()
      Get threshold exceeded counter.
      Returns:
      threshold exceeded counter.
    • cycleTimeThresholdNs

      public long cycleTimeThresholdNs()
      Get threshold value.
      Returns:
      threshold value.
    • reportMeasurement

      public void reportMeasurement(long durationNs)
      Callback called to report duration of cycle.
      Overrides:
      reportMeasurement in class DutyCycleTracker
      Parameters:
      durationNs - of the duty cycle.
    • toString

      public String toString()
      Overrides:
      toString in class DutyCycleTracker