Record Class GossipBus.PacingSignals
java.lang.Object
java.lang.Record
ai.badmonkey.agentspaces.peering.gossip.GossipBus.PacingSignals
- Record Components:
hashedOpeningsSent- hashed anti-entropy openings this bus sent (one per round toward a hinted member)hashedOpeningStreamsSent- stream hashes those openings carriedwantsReceived- answers to them naming streams that differ, from the member the round was opened withwantedStreamsReceived- streams those answers namedhashedOpeningsReceived- hashed openings from memberswantsSent- of those, the ones this bus answered with a wantprobeRoundsHashes- targeted rounds opened because a probe's per-stream hashes differedprobeRoundsRootOnly- targeted rounds opened because a probe's root differed (it carried no hash per stream)digestTextBytesSent- bytes of full digest text sent, in plain rounds and in answer to a wantdigestTextBytesReceived- bytes of full digest text receivedpullRespSent- PULL_RESP frames sentpullRespDeltasSent- stream deltas they carriedpullRespBytesSent- delta bytes they carriedpullRespReceived- PULL_RESP frames applied (from a member a round was opened with)pullRespDeltasReceived- stream deltas they carriedpullRespBytesReceived- delta bytes they carriedpullRespUnsolicited- PULL_RESP frames dropped as unsolicited (ASF-003)
- Enclosing class:
GossipBus
public static record GossipBus.PacingSignals(long hashedOpeningsSent, long hashedOpeningStreamsSent, long wantsReceived, long wantedStreamsReceived, long hashedOpeningsReceived, long wantsSent, long probeRoundsHashes, long probeRoundsRootOnly, long digestTextBytesSent, long digestTextBytesReceived, long pullRespSent, long pullRespDeltasSent, long pullRespBytesSent, long pullRespReceived, long pullRespDeltasReceived, long pullRespBytesReceived, long pullRespUnsolicited)
extends Record
The pacing signals so far, a snapshot of counters that each only grow.
-
Constructor Summary
ConstructorsConstructorDescriptionPacingSignals(long hashedOpeningsSent, long hashedOpeningStreamsSent, long wantsReceived, long wantedStreamsReceived, long hashedOpeningsReceived, long wantsSent, long probeRoundsHashes, long probeRoundsRootOnly, long digestTextBytesSent, long digestTextBytesReceived, long pullRespSent, long pullRespDeltasSent, long pullRespBytesSent, long pullRespReceived, long pullRespDeltasReceived, long pullRespBytesReceived, long pullRespUnsolicited) Creates an instance of aPacingSignalsrecord class. -
Method Summary
Modifier and TypeMethodDescriptionlongReturns the value of thedigestTextBytesReceivedrecord component.longReturns the value of thedigestTextBytesSentrecord component.final booleanIndicates whether some other object is "equal to" this one.final inthashCode()Returns a hash code value for this object.longReturns the value of thehashedOpeningsReceivedrecord component.longReturns the value of thehashedOpeningsSentrecord component.longReturns the value of thehashedOpeningStreamsSentrecord component.longEvery targeted round opened from a probe.longReturns the value of theprobeRoundsHashesrecord component.longReturns the value of theprobeRoundsRootOnlyrecord component.longReturns the value of thepullRespBytesReceivedrecord component.longReturns the value of thepullRespBytesSentrecord component.longReturns the value of thepullRespDeltasReceivedrecord component.longReturns the value of thepullRespDeltasSentrecord component.longReturns the value of thepullRespReceivedrecord component.longReturns the value of thepullRespSentrecord component.longReturns the value of thepullRespUnsolicitedrecord component.final StringtoString()Returns a string representation of this record class.longReturns the value of thewantedStreamsReceivedrecord component.doubleThe share of this bus's hashed openings that were answered with a want; zero before the first opening.longReturns the value of thewantsReceivedrecord component.longReturns the value of thewantsSentrecord component.
-
Constructor Details
-
PacingSignals
public PacingSignals(long hashedOpeningsSent, long hashedOpeningStreamsSent, long wantsReceived, long wantedStreamsReceived, long hashedOpeningsReceived, long wantsSent, long probeRoundsHashes, long probeRoundsRootOnly, long digestTextBytesSent, long digestTextBytesReceived, long pullRespSent, long pullRespDeltasSent, long pullRespBytesSent, long pullRespReceived, long pullRespDeltasReceived, long pullRespBytesReceived, long pullRespUnsolicited) Creates an instance of aPacingSignalsrecord class.- Parameters:
hashedOpeningsSent- the value for thehashedOpeningsSentrecord componenthashedOpeningStreamsSent- the value for thehashedOpeningStreamsSentrecord componentwantsReceived- the value for thewantsReceivedrecord componentwantedStreamsReceived- the value for thewantedStreamsReceivedrecord componenthashedOpeningsReceived- the value for thehashedOpeningsReceivedrecord componentwantsSent- the value for thewantsSentrecord componentprobeRoundsHashes- the value for theprobeRoundsHashesrecord componentprobeRoundsRootOnly- the value for theprobeRoundsRootOnlyrecord componentdigestTextBytesSent- the value for thedigestTextBytesSentrecord componentdigestTextBytesReceived- the value for thedigestTextBytesReceivedrecord componentpullRespSent- the value for thepullRespSentrecord componentpullRespDeltasSent- the value for thepullRespDeltasSentrecord componentpullRespBytesSent- the value for thepullRespBytesSentrecord componentpullRespReceived- the value for thepullRespReceivedrecord componentpullRespDeltasReceived- the value for thepullRespDeltasReceivedrecord componentpullRespBytesReceived- the value for thepullRespBytesReceivedrecord componentpullRespUnsolicited- the value for thepullRespUnsolicitedrecord component
-
-
Method Details
-
wantFraction
public double wantFraction()The share of this bus's hashed openings that were answered with a want; zero before the first opening. -
probeRounds
public long probeRounds()Every targeted round opened from a probe. -
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. All components in this record class are compared with thecomparemethod from their corresponding wrapper classes. -
hashedOpeningsSent
public long hashedOpeningsSent()Returns the value of thehashedOpeningsSentrecord component.- Returns:
- the value of the
hashedOpeningsSentrecord component
-
hashedOpeningStreamsSent
public long hashedOpeningStreamsSent()Returns the value of thehashedOpeningStreamsSentrecord component.- Returns:
- the value of the
hashedOpeningStreamsSentrecord component
-
wantsReceived
public long wantsReceived()Returns the value of thewantsReceivedrecord component.- Returns:
- the value of the
wantsReceivedrecord component
-
wantedStreamsReceived
public long wantedStreamsReceived()Returns the value of thewantedStreamsReceivedrecord component.- Returns:
- the value of the
wantedStreamsReceivedrecord component
-
hashedOpeningsReceived
public long hashedOpeningsReceived()Returns the value of thehashedOpeningsReceivedrecord component.- Returns:
- the value of the
hashedOpeningsReceivedrecord component
-
wantsSent
-
probeRoundsHashes
public long probeRoundsHashes()Returns the value of theprobeRoundsHashesrecord component.- Returns:
- the value of the
probeRoundsHashesrecord component
-
probeRoundsRootOnly
public long probeRoundsRootOnly()Returns the value of theprobeRoundsRootOnlyrecord component.- Returns:
- the value of the
probeRoundsRootOnlyrecord component
-
digestTextBytesSent
public long digestTextBytesSent()Returns the value of thedigestTextBytesSentrecord component.- Returns:
- the value of the
digestTextBytesSentrecord component
-
digestTextBytesReceived
public long digestTextBytesReceived()Returns the value of thedigestTextBytesReceivedrecord component.- Returns:
- the value of the
digestTextBytesReceivedrecord component
-
pullRespSent
public long pullRespSent()Returns the value of thepullRespSentrecord component.- Returns:
- the value of the
pullRespSentrecord component
-
pullRespDeltasSent
public long pullRespDeltasSent()Returns the value of thepullRespDeltasSentrecord component.- Returns:
- the value of the
pullRespDeltasSentrecord component
-
pullRespBytesSent
public long pullRespBytesSent()Returns the value of thepullRespBytesSentrecord component.- Returns:
- the value of the
pullRespBytesSentrecord component
-
pullRespReceived
public long pullRespReceived()Returns the value of thepullRespReceivedrecord component.- Returns:
- the value of the
pullRespReceivedrecord component
-
pullRespDeltasReceived
public long pullRespDeltasReceived()Returns the value of thepullRespDeltasReceivedrecord component.- Returns:
- the value of the
pullRespDeltasReceivedrecord component
-
pullRespBytesReceived
public long pullRespBytesReceived()Returns the value of thepullRespBytesReceivedrecord component.- Returns:
- the value of the
pullRespBytesReceivedrecord component
-
pullRespUnsolicited
public long pullRespUnsolicited()Returns the value of thepullRespUnsolicitedrecord component.- Returns:
- the value of the
pullRespUnsolicitedrecord component
-