Record Class PushPublisher.Stats
java.lang.Object
java.lang.Record
ai.badmonkey.agentspaces.pdt.refs.PushPublisher.Stats
- Record Components:
deltasPushed- deltas this writer pusheddeltasPullOnly- deltas over the inline bound this writer did not push: over max-bytes, max-nodes, or the budgetbundlesSent- bundles this writer publishedbytesPushed- node bytes this writer pushedbundlesReceived- bundles this follower took for a stream it followsbundlesDropped- bundles dropped: outside the grammar or a bound, or past a budgetnodesStored- nodes stored from bundles, each verified against a live head's rootbytesStored- node bytes stored from bundlesnodesDropped- nodes held aside and dropped: no live head named their root within the grace, or its root did not reach themfallbacks- 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 Summary
ConstructorsConstructorDescriptionStats(long deltasPushed, long deltasPullOnly, long bundlesSent, long bytesPushed, long bundlesReceived, long bundlesDropped, long nodesStored, long bytesStored, long nodesDropped, long fallbacks) Creates an instance of aStatsrecord class. -
Method Summary
Modifier and TypeMethodDescriptionlongReturns the value of thebundlesDroppedrecord component.longReturns the value of thebundlesReceivedrecord component.longReturns the value of thebundlesSentrecord component.longReturns the value of thebytesPushedrecord component.longReturns the value of thebytesStoredrecord component.longReturns the value of thedeltasPullOnlyrecord component.longReturns the value of thedeltasPushedrecord component.final booleanIndicates whether some other object is "equal to" this one.longReturns the value of thefallbacksrecord component.final inthashCode()Returns a hash code value for this object.longReturns the value of thenodesDroppedrecord component.longReturns the value of thenodesStoredrecord component.final StringtoString()Returns a string representation of this record class.
-
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 aStatsrecord class.- Parameters:
deltasPushed- the value for thedeltasPushedrecord componentdeltasPullOnly- the value for thedeltasPullOnlyrecord componentbundlesSent- the value for thebundlesSentrecord componentbytesPushed- the value for thebytesPushedrecord componentbundlesReceived- the value for thebundlesReceivedrecord componentbundlesDropped- the value for thebundlesDroppedrecord componentnodesStored- the value for thenodesStoredrecord componentbytesStored- the value for thebytesStoredrecord componentnodesDropped- the value for thenodesDroppedrecord componentfallbacks- the value for thefallbacksrecord 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. All components in this record class are compared with thecomparemethod from their corresponding wrapper classes. -
deltasPushed
public long deltasPushed()Returns the value of thedeltasPushedrecord component.- Returns:
- the value of the
deltasPushedrecord component
-
deltasPullOnly
public long deltasPullOnly()Returns the value of thedeltasPullOnlyrecord component.- Returns:
- the value of the
deltasPullOnlyrecord component
-
bundlesSent
public long bundlesSent()Returns the value of thebundlesSentrecord component.- Returns:
- the value of the
bundlesSentrecord component
-
bytesPushed
public long bytesPushed()Returns the value of thebytesPushedrecord component.- Returns:
- the value of the
bytesPushedrecord component
-
bundlesReceived
public long bundlesReceived()Returns the value of thebundlesReceivedrecord component.- Returns:
- the value of the
bundlesReceivedrecord component
-
bundlesDropped
public long bundlesDropped()Returns the value of thebundlesDroppedrecord component.- Returns:
- the value of the
bundlesDroppedrecord component
-
nodesStored
public long nodesStored()Returns the value of thenodesStoredrecord component.- Returns:
- the value of the
nodesStoredrecord component
-
bytesStored
public long bytesStored()Returns the value of thebytesStoredrecord component.- Returns:
- the value of the
bytesStoredrecord component
-
nodesDropped
public long nodesDropped()Returns the value of thenodesDroppedrecord component.- Returns:
- the value of the
nodesDroppedrecord component
-
fallbacks
-