Record Class RepositoryReplicationMetricsSnapshot
java.lang.Object
java.lang.Record
org.j7m.middleware.application.api.replication.RepositoryReplicationMetricsSnapshot
- Record Components:
artifactsTransferred- artifact transfer countbytesTransferred- transferred bytesconflictsDetected- detected conflictsrepairsCompleted- completed repairsrejectedOperations- limit or validation rejections
- All Implemented Interfaces:
Serializable
public record RepositoryReplicationMetricsSnapshot(long artifactsTransferred, long bytesTransferred, long conflictsDetected, long repairsCompleted, long rejectedOperations)
extends Record
implements Serializable
Repository replication metrics snapshot.
- See Also:
-
Constructor Summary
ConstructorsConstructorDescriptionRepositoryReplicationMetricsSnapshot(long artifactsTransferred, long bytesTransferred, long conflictsDetected, long repairsCompleted, long rejectedOperations) Creates a validated metrics snapshot. -
Method Summary
Modifier and TypeMethodDescriptionlongReturns the value of theartifactsTransferredrecord component.longReturns the value of thebytesTransferredrecord component.longReturns the value of theconflictsDetectedrecord 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 therejectedOperationsrecord component.longReturns the value of therepairsCompletedrecord component.final StringtoString()Returns a string representation of this record class.
-
Constructor Details
-
RepositoryReplicationMetricsSnapshot
public RepositoryReplicationMetricsSnapshot(long artifactsTransferred, long bytesTransferred, long conflictsDetected, long repairsCompleted, long rejectedOperations) Creates a validated metrics snapshot.
-
-
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. -
artifactsTransferred
public long artifactsTransferred()Returns the value of theartifactsTransferredrecord component.- Returns:
- the value of the
artifactsTransferredrecord component
-
bytesTransferred
public long bytesTransferred()Returns the value of thebytesTransferredrecord component.- Returns:
- the value of the
bytesTransferredrecord component
-
conflictsDetected
public long conflictsDetected()Returns the value of theconflictsDetectedrecord component.- Returns:
- the value of the
conflictsDetectedrecord component
-
repairsCompleted
public long repairsCompleted()Returns the value of therepairsCompletedrecord component.- Returns:
- the value of the
repairsCompletedrecord component
-
rejectedOperations
public long rejectedOperations()Returns the value of therejectedOperationsrecord component.- Returns:
- the value of the
rejectedOperationsrecord component
-