Record Class PeerNode.LoopStats
java.lang.Object
java.lang.Record
ai.badmonkey.agentspaces.peering.node.PeerNode.LoopStats
- Record Components:
runs- loop runs: timer, event and direct (PeerNode.tick())timerWakes- runs the loop's armed timer started (a deadline or the backstop)eventWakes- runs a wake started (a frame, a change signal, a registration)directRuns- runs ofPeerNode.tick()backstopRuns- runs that swept every participant because the backstop came duebackstopFoundWork- sweeps that found a participant reporting a deadline earlier than the one the loop held, or doing work it said fell due before it (NodeLoop.foundOverdue), with no wake (a missed wake, EL-Q-REL-03), over every participantbackstopFoundBy- the same, by participant nameparticipantThrows- runs of a participant that threw, by participant name (NL-4)flushRuns- runs of the flush timer, armed only by an enqueue into an idle node (EL-B-01)flushesWithFrames- flush runs that found at least one frame to sendslowRuns- loop runs overPeerNode.SLOW_RUN_NANOSof real timefailedRuns- participant runs that threw, over every participantoverruns- timer fires that found a run pending or running (§3.10)latenessSamples- timer-started runs whose lateness is in the three figures below (the most recent 4,096)latenessP50Nanos- the median of a timer-started run's start minus the deadline it was armed forlatenessP99Nanos- the 99th percentile of the samelatenessMaxNanos- the largest lateness since the node startedbusyNanos- the real time loop runs took, summedflushWaitSamples- flushes whose oldest frame's wait is in the two figures below (the most recent 4,096)flushWaitP99Nanos- the 99th percentile of the oldest frame's wait from its enqueue to its flush (EL-B-04)flushWaitMaxNanos- the largest such wait since the node startedgeneration- the loop's generation, bumped by each watchdog re-initialisation (§3.9)backstopOnlyRuns- backstop runs in which no participant was due or asked; timer and event wakes less these are the runs that had work (core.idle.wakes, §5.4)dueRuns- per participant, scheduled runs that called it because its deadline cameaskedRuns- per participant, scheduled runs that called it because a wake asked itwakeCalls- wakes raised, by who raised them: a participant's name,group:<id>[/<kind>]orall(the per-participant wake counters, srad/agentspaces-event-loop.md §10.21)stretch- the stretch factor on local periods now, 1 for none (EL-O-04)stretches- steps up of the stretchrestores- steps down of the stretchrefreshes- refresh actions run before a stretch applied, or before the first run after a re-initialisation that found a wire-visible deadline overdue (EL-O-05, WD-4)stretchUnrefreshed- wire-visible deadlines whose stretch would have outrun their refresh, held to it (core.loop.stretch-unrefreshed, goal 0)poolThreads- the loop pool's threads now, 0 on a source with none (core.loop.pool-threads)poolMax- the loop pool's max, 0 on a source with nonewireVisible- the participants whose cadence a peer judges, which carry a refresh action (EL-O-07, EL-F-01)
- Enclosing class:
PeerNode
public static record PeerNode.LoopStats(long runs, long timerWakes, long eventWakes, long directRuns, long backstopRuns, long backstopFoundWork, Map<String,Long> backstopFoundBy, Map<String,Long> participantThrows, long flushRuns, long flushesWithFrames, long slowRuns, long failedRuns, long overruns, long latenessSamples, long latenessP50Nanos, long latenessP99Nanos, long latenessMaxNanos, long busyNanos, long flushWaitSamples, long flushWaitP99Nanos, long flushWaitMaxNanos, long generation, long backstopOnlyRuns, Map<String,Long> dueRuns, Map<String,Long> askedRuns, Map<String,Long> wakeCalls, int stretch, long stretches, long restores, long refreshes, long stretchUnrefreshed, int poolThreads, int poolMax, List<String> wireVisible)
extends Record
What this node's loop did since it started (srad/agentspaces-event-loop.md NL-6, EL-M-02). Phase 0 read the
old ticker and flusher with the first of these counters; from phase 1 they read the node's loop and its flush
timer, so the series before and after the event loop are the same series.
-
Constructor Summary
ConstructorsConstructorDescriptionLoopStats(long runs, long timerWakes, long eventWakes, long directRuns, long backstopRuns, long backstopFoundWork, Map<String, Long> backstopFoundBy, Map<String, Long> participantThrows, long flushRuns, long flushesWithFrames, long slowRuns, long failedRuns, long overruns, long latenessSamples, long latenessP50Nanos, long latenessP99Nanos, long latenessMaxNanos, long busyNanos, long flushWaitSamples, long flushWaitP99Nanos, long flushWaitMaxNanos, long generation, long backstopOnlyRuns, Map<String, Long> dueRuns, Map<String, Long> askedRuns, Map<String, Long> wakeCalls, int stretch, long stretches, long restores, long refreshes, long stretchUnrefreshed, int poolThreads, int poolMax, List<String> wireVisible) Creates an instance of aLoopStatsrecord class. -
Method Summary
Modifier and TypeMethodDescriptionReturns the value of theaskedRunsrecord component.Returns the value of thebackstopFoundByrecord component.longReturns the value of thebackstopFoundWorkrecord component.longReturns the value of thebackstopOnlyRunsrecord component.longReturns the value of thebackstopRunsrecord component.longReturns the value of thebusyNanosrecord component.longReturns the value of thedirectRunsrecord component.dueRuns()Returns the value of thedueRunsrecord component.final booleanIndicates whether some other object is "equal to" this one.longReturns the value of theeventWakesrecord component.longReturns the value of thefailedRunsrecord component.longReturns the value of theflushesWithFramesrecord component.longReturns the value of theflushRunsrecord component.longReturns the value of theflushWaitMaxNanosrecord component.longReturns the value of theflushWaitP99Nanosrecord component.longReturns the value of theflushWaitSamplesrecord component.longReturns the value of thegenerationrecord component.final inthashCode()Returns a hash code value for this object.longReturns the value of thelatenessMaxNanosrecord component.longReturns the value of thelatenessP50Nanosrecord component.longReturns the value of thelatenessP99Nanosrecord component.longReturns the value of thelatenessSamplesrecord component.longoverruns()Returns the value of theoverrunsrecord component.Returns the value of theparticipantThrowsrecord component.intpoolMax()Returns the value of thepoolMaxrecord component.intReturns the value of thepoolThreadsrecord component.longReturns the value of therefreshesrecord component.longrestores()Returns the value of therestoresrecord component.longruns()Returns the value of therunsrecord component.longslowRuns()Returns the value of theslowRunsrecord component.intstretch()Returns the value of thestretchrecord component.longReturns the value of thestretchesrecord component.longReturns the value of thestretchUnrefreshedrecord component.longReturns the value of thetimerWakesrecord component.final StringtoString()Returns a string representation of this record class.Returns the value of thewakeCallsrecord component.Returns the value of thewireVisiblerecord component.
-
Constructor Details
-
LoopStats
public LoopStats(long runs, long timerWakes, long eventWakes, long directRuns, long backstopRuns, long backstopFoundWork, Map<String, Long> backstopFoundBy, Map<String, Long> participantThrows, long flushRuns, long flushesWithFrames, long slowRuns, long failedRuns, long overruns, long latenessSamples, long latenessP50Nanos, long latenessP99Nanos, long latenessMaxNanos, long busyNanos, long flushWaitSamples, long flushWaitP99Nanos, long flushWaitMaxNanos, long generation, long backstopOnlyRuns, Map<String, Long> dueRuns, Map<String, Long> askedRuns, Map<String, Long> wakeCalls, int stretch, long stretches, long restores, long refreshes, long stretchUnrefreshed, int poolThreads, int poolMax, List<String> wireVisible) Creates an instance of aLoopStatsrecord class.- Parameters:
runs- the value for therunsrecord componenttimerWakes- the value for thetimerWakesrecord componenteventWakes- the value for theeventWakesrecord componentdirectRuns- the value for thedirectRunsrecord componentbackstopRuns- the value for thebackstopRunsrecord componentbackstopFoundWork- the value for thebackstopFoundWorkrecord componentbackstopFoundBy- the value for thebackstopFoundByrecord componentparticipantThrows- the value for theparticipantThrowsrecord componentflushRuns- the value for theflushRunsrecord componentflushesWithFrames- the value for theflushesWithFramesrecord componentslowRuns- the value for theslowRunsrecord componentfailedRuns- the value for thefailedRunsrecord componentoverruns- the value for theoverrunsrecord componentlatenessSamples- the value for thelatenessSamplesrecord componentlatenessP50Nanos- the value for thelatenessP50Nanosrecord componentlatenessP99Nanos- the value for thelatenessP99Nanosrecord componentlatenessMaxNanos- the value for thelatenessMaxNanosrecord componentbusyNanos- the value for thebusyNanosrecord componentflushWaitSamples- the value for theflushWaitSamplesrecord componentflushWaitP99Nanos- the value for theflushWaitP99Nanosrecord componentflushWaitMaxNanos- the value for theflushWaitMaxNanosrecord componentgeneration- the value for thegenerationrecord componentbackstopOnlyRuns- the value for thebackstopOnlyRunsrecord componentdueRuns- the value for thedueRunsrecord componentaskedRuns- the value for theaskedRunsrecord componentwakeCalls- the value for thewakeCallsrecord componentstretch- the value for thestretchrecord componentstretches- the value for thestretchesrecord componentrestores- the value for therestoresrecord componentrefreshes- the value for therefreshesrecord componentstretchUnrefreshed- the value for thestretchUnrefreshedrecord componentpoolThreads- the value for thepoolThreadsrecord componentpoolMax- the value for thepoolMaxrecord componentwireVisible- the value for thewireVisiblerecord component
-
-
Method Details
-
toString
-
hashCode
-
equals
Indicates whether some other object is "equal to" this one. The objects are equal if the other object is of the same class and if all the record components are equal. Reference components are compared withObjects::equals(Object,Object); primitive components are compared with thecomparemethod from their corresponding wrapper classes. -
runs
-
timerWakes
public long timerWakes()Returns the value of thetimerWakesrecord component.- Returns:
- the value of the
timerWakesrecord component
-
eventWakes
public long eventWakes()Returns the value of theeventWakesrecord component.- Returns:
- the value of the
eventWakesrecord component
-
directRuns
public long directRuns()Returns the value of thedirectRunsrecord component.- Returns:
- the value of the
directRunsrecord component
-
backstopRuns
public long backstopRuns()Returns the value of thebackstopRunsrecord component.- Returns:
- the value of the
backstopRunsrecord component
-
backstopFoundWork
public long backstopFoundWork()Returns the value of thebackstopFoundWorkrecord component.- Returns:
- the value of the
backstopFoundWorkrecord component
-
backstopFoundBy
Returns the value of thebackstopFoundByrecord component.- Returns:
- the value of the
backstopFoundByrecord component
-
participantThrows
Returns the value of theparticipantThrowsrecord component.- Returns:
- the value of the
participantThrowsrecord component
-
flushRuns
-
flushesWithFrames
public long flushesWithFrames()Returns the value of theflushesWithFramesrecord component.- Returns:
- the value of the
flushesWithFramesrecord component
-
slowRuns
-
failedRuns
public long failedRuns()Returns the value of thefailedRunsrecord component.- Returns:
- the value of the
failedRunsrecord component
-
overruns
-
latenessSamples
public long latenessSamples()Returns the value of thelatenessSamplesrecord component.- Returns:
- the value of the
latenessSamplesrecord component
-
latenessP50Nanos
public long latenessP50Nanos()Returns the value of thelatenessP50Nanosrecord component.- Returns:
- the value of the
latenessP50Nanosrecord component
-
latenessP99Nanos
public long latenessP99Nanos()Returns the value of thelatenessP99Nanosrecord component.- Returns:
- the value of the
latenessP99Nanosrecord component
-
latenessMaxNanos
public long latenessMaxNanos()Returns the value of thelatenessMaxNanosrecord component.- Returns:
- the value of the
latenessMaxNanosrecord component
-
busyNanos
-
flushWaitSamples
public long flushWaitSamples()Returns the value of theflushWaitSamplesrecord component.- Returns:
- the value of the
flushWaitSamplesrecord component
-
flushWaitP99Nanos
public long flushWaitP99Nanos()Returns the value of theflushWaitP99Nanosrecord component.- Returns:
- the value of the
flushWaitP99Nanosrecord component
-
flushWaitMaxNanos
public long flushWaitMaxNanos()Returns the value of theflushWaitMaxNanosrecord component.- Returns:
- the value of the
flushWaitMaxNanosrecord component
-
generation
public long generation()Returns the value of thegenerationrecord component.- Returns:
- the value of the
generationrecord component
-
backstopOnlyRuns
public long backstopOnlyRuns()Returns the value of thebackstopOnlyRunsrecord component.- Returns:
- the value of the
backstopOnlyRunsrecord component
-
dueRuns
-
askedRuns
-
wakeCalls
-
stretch
-
stretches
-
restores
-
refreshes
-
stretchUnrefreshed
public long stretchUnrefreshed()Returns the value of thestretchUnrefreshedrecord component.- Returns:
- the value of the
stretchUnrefreshedrecord component
-
poolThreads
public int poolThreads()Returns the value of thepoolThreadsrecord component.- Returns:
- the value of the
poolThreadsrecord component
-
poolMax
-
wireVisible
Returns the value of thewireVisiblerecord component.- Returns:
- the value of the
wireVisiblerecord component
-