Record Class PushPublisher.Stats

java.lang.Object
java.lang.Record
ai.badmonkey.agentspaces.pdt.refs.PushPublisher.Stats
Record Components:
deltasPushed - deltas this writer pushed
deltasPullOnly - deltas over the inline bound this writer did not push: over max-bytes, max-nodes, or the budget
bundlesSent - bundles this writer published
bytesPushed - node bytes this writer pushed
bundlesReceived - bundles this follower took for a stream it follows
bundlesDropped - bundles dropped: outside the grammar or a bound, or past a budget
nodesStored - nodes stored from bundles, each verified against a live head's root
bytesStored - node bytes stored from bundles
nodesDropped - nodes held aside and dropped: no live head named their root within the grace, or its root did not reach them
fallbacks - announced pushes that did not complete within the grace, so the follower fetched
Enclosing class:
PushPublisher

public static record PushPublisher.Stats(long deltasPushed, long deltasPullOnly, long bundlesSent, long bytesPushed, long bundlesReceived, long bundlesDropped, long nodesStored, long bytesStored, long nodesDropped, long fallbacks) extends Record
What a peer pushed and received (P2-P-05 reads pushed against pulled bytes).
  • Constructor Details

    • Stats

      public Stats(long deltasPushed, long deltasPullOnly, long bundlesSent, long bytesPushed, long bundlesReceived, long bundlesDropped, long nodesStored, long bytesStored, long nodesDropped, long fallbacks)
      Creates an instance of a Stats record class.
      Parameters:
      deltasPushed - the value for the deltasPushed record component
      deltasPullOnly - the value for the deltasPullOnly record component
      bundlesSent - the value for the bundlesSent record component
      bytesPushed - the value for the bytesPushed record component
      bundlesReceived - the value for the bundlesReceived record component
      bundlesDropped - the value for the bundlesDropped record component
      nodesStored - the value for the nodesStored record component
      bytesStored - the value for the bytesStored record component
      nodesDropped - the value for the nodesDropped record component
      fallbacks - the value for the fallbacks record component
  • Method Details

    • 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.
    • deltasPushed

      public long deltasPushed()
      Returns the value of the deltasPushed record component.
      Returns:
      the value of the deltasPushed record component
    • deltasPullOnly

      public long deltasPullOnly()
      Returns the value of the deltasPullOnly record component.
      Returns:
      the value of the deltasPullOnly record component
    • bundlesSent

      public long bundlesSent()
      Returns the value of the bundlesSent record component.
      Returns:
      the value of the bundlesSent record component
    • bytesPushed

      public long bytesPushed()
      Returns the value of the bytesPushed record component.
      Returns:
      the value of the bytesPushed record component
    • bundlesReceived

      public long bundlesReceived()
      Returns the value of the bundlesReceived record component.
      Returns:
      the value of the bundlesReceived record component
    • bundlesDropped

      public long bundlesDropped()
      Returns the value of the bundlesDropped record component.
      Returns:
      the value of the bundlesDropped record component
    • nodesStored

      public long nodesStored()
      Returns the value of the nodesStored record component.
      Returns:
      the value of the nodesStored record component
    • bytesStored

      public long bytesStored()
      Returns the value of the bytesStored record component.
      Returns:
      the value of the bytesStored record component
    • nodesDropped

      public long nodesDropped()
      Returns the value of the nodesDropped record component.
      Returns:
      the value of the nodesDropped record component
    • fallbacks

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