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 carried
wantsReceived - answers to them naming streams that differ, from the member the round was opened with
wantedStreamsReceived - streams those answers named
hashedOpeningsReceived - hashed openings from members
wantsSent - of those, the ones this bus answered with a want
probeRoundsHashes - targeted rounds opened because a probe's per-stream hashes differed
probeRoundsRootOnly - 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 want
digestTextBytesReceived - bytes of full digest text received
pullRespSent - PULL_RESP frames sent
pullRespDeltasSent - stream deltas they carried
pullRespBytesSent - delta bytes they carried
pullRespReceived - PULL_RESP frames applied (from a member a round was opened with)
pullRespDeltasReceived - stream deltas they carried
pullRespBytesReceived - delta bytes they carried
pullRespUnsolicited - 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 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 a PacingSignals record class.
      Parameters:
      hashedOpeningsSent - the value for the hashedOpeningsSent record component
      hashedOpeningStreamsSent - the value for the hashedOpeningStreamsSent record component
      wantsReceived - the value for the wantsReceived record component
      wantedStreamsReceived - the value for the wantedStreamsReceived record component
      hashedOpeningsReceived - the value for the hashedOpeningsReceived record component
      wantsSent - the value for the wantsSent record component
      probeRoundsHashes - the value for the probeRoundsHashes record component
      probeRoundsRootOnly - the value for the probeRoundsRootOnly record component
      digestTextBytesSent - the value for the digestTextBytesSent record component
      digestTextBytesReceived - the value for the digestTextBytesReceived record component
      pullRespSent - the value for the pullRespSent record component
      pullRespDeltasSent - the value for the pullRespDeltasSent record component
      pullRespBytesSent - the value for the pullRespBytesSent record component
      pullRespReceived - the value for the pullRespReceived record component
      pullRespDeltasReceived - the value for the pullRespDeltasReceived record component
      pullRespBytesReceived - the value for the pullRespBytesReceived record component
      pullRespUnsolicited - the value for the pullRespUnsolicited record 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

      public final String toString()
      Returns a string representation of this record class. The representation contains the name of the class, followed by the name and value of each of the record components.
      Specified by:
      toString in class Record
      Returns:
      a string representation of this object
    • hashCode

      public final int hashCode()
      Returns a hash code value for this object. The value is derived from the hash code of each of the record components.
      Specified by:
      hashCode in class Record
      Returns:
      a hash code value for this object
    • equals

      public final boolean equals(Object o)
      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 the compare method from their corresponding wrapper classes.
      Specified by:
      equals in class Record
      Parameters:
      o - the object with which to compare
      Returns:
      true if this object is the same as the o argument; false otherwise.
    • hashedOpeningsSent

      public long hashedOpeningsSent()
      Returns the value of the hashedOpeningsSent record component.
      Returns:
      the value of the hashedOpeningsSent record component
    • hashedOpeningStreamsSent

      public long hashedOpeningStreamsSent()
      Returns the value of the hashedOpeningStreamsSent record component.
      Returns:
      the value of the hashedOpeningStreamsSent record component
    • wantsReceived

      public long wantsReceived()
      Returns the value of the wantsReceived record component.
      Returns:
      the value of the wantsReceived record component
    • wantedStreamsReceived

      public long wantedStreamsReceived()
      Returns the value of the wantedStreamsReceived record component.
      Returns:
      the value of the wantedStreamsReceived record component
    • hashedOpeningsReceived

      public long hashedOpeningsReceived()
      Returns the value of the hashedOpeningsReceived record component.
      Returns:
      the value of the hashedOpeningsReceived record component
    • wantsSent

      public long wantsSent()
      Returns the value of the wantsSent record component.
      Returns:
      the value of the wantsSent record component
    • probeRoundsHashes

      public long probeRoundsHashes()
      Returns the value of the probeRoundsHashes record component.
      Returns:
      the value of the probeRoundsHashes record component
    • probeRoundsRootOnly

      public long probeRoundsRootOnly()
      Returns the value of the probeRoundsRootOnly record component.
      Returns:
      the value of the probeRoundsRootOnly record component
    • digestTextBytesSent

      public long digestTextBytesSent()
      Returns the value of the digestTextBytesSent record component.
      Returns:
      the value of the digestTextBytesSent record component
    • digestTextBytesReceived

      public long digestTextBytesReceived()
      Returns the value of the digestTextBytesReceived record component.
      Returns:
      the value of the digestTextBytesReceived record component
    • pullRespSent

      public long pullRespSent()
      Returns the value of the pullRespSent record component.
      Returns:
      the value of the pullRespSent record component
    • pullRespDeltasSent

      public long pullRespDeltasSent()
      Returns the value of the pullRespDeltasSent record component.
      Returns:
      the value of the pullRespDeltasSent record component
    • pullRespBytesSent

      public long pullRespBytesSent()
      Returns the value of the pullRespBytesSent record component.
      Returns:
      the value of the pullRespBytesSent record component
    • pullRespReceived

      public long pullRespReceived()
      Returns the value of the pullRespReceived record component.
      Returns:
      the value of the pullRespReceived record component
    • pullRespDeltasReceived

      public long pullRespDeltasReceived()
      Returns the value of the pullRespDeltasReceived record component.
      Returns:
      the value of the pullRespDeltasReceived record component
    • pullRespBytesReceived

      public long pullRespBytesReceived()
      Returns the value of the pullRespBytesReceived record component.
      Returns:
      the value of the pullRespBytesReceived record component
    • pullRespUnsolicited

      public long pullRespUnsolicited()
      Returns the value of the pullRespUnsolicited record component.
      Returns:
      the value of the pullRespUnsolicited record component