Package io.aeron.driver.status
Class DutyCycleStallTracker
java.lang.Object
io.aeron.driver.DutyCycleTracker
io.aeron.driver.status.DutyCycleStallTracker
Duty cycle tracker that detects when a cycle exceeds a threshold and tracks max cycle time reporting both through
counters.
-
Constructor Summary
ConstructorsConstructorDescriptionDutyCycleStallTracker(AtomicCounter maxCycleTime, AtomicCounter cycleTimeThresholdExceededCount, long cycleTimeThresholdNs) Create a tracker to track max cycle time and excesses of a threshold. -
Method Summary
Modifier and TypeMethodDescriptionGet threshold exceeded counter.longGet threshold value.Get max cycle time counter.voidreportMeasurement(long durationNs) Callback called to report duration of cycle.toString()Methods inherited from class io.aeron.driver.DutyCycleTracker
measureAndUpdate, update
-
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
Get max cycle time counter.- Returns:
- max cycle time counter.
-
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:
reportMeasurementin classDutyCycleTracker- Parameters:
durationNs- of the duty cycle.
-
toString
- Overrides:
toStringin classDutyCycleTracker
-