Record Class PartitionMigrationPipeline.MigrationProgress
java.lang.Object
java.lang.Record
com.loomcache.server.cluster.PartitionMigrationPipeline.MigrationProgress
- Enclosing class:
PartitionMigrationPipeline
public static record PartitionMigrationPipeline.MigrationProgress(long totalEntries, long copiedEntries, long bytesTransferred, long elapsedMs, long estimatedRemainingMs)
extends Record
Progress record for tracking migration advancement.
- Since:
- 1.0
-
Constructor Summary
ConstructorsConstructorDescriptionMigrationProgress(long totalEntries, long copiedEntries, long bytesTransferred, long elapsedMs, long estimatedRemainingMs) Creates an instance of aMigrationProgressrecord class. -
Method Summary
Modifier and TypeMethodDescriptionlongReturns the value of thebytesTransferredrecord component.longReturns the value of thecopiedEntriesrecord component.longReturns the value of theelapsedMsrecord component.final booleanIndicates whether some other object is "equal to" this one.longReturns the value of theestimatedRemainingMsrecord component.doubledoublefinal inthashCode()Returns a hash code value for this object.final StringtoString()Returns a string representation of this record class.longReturns the value of thetotalEntriesrecord component.
-
Constructor Details
-
MigrationProgress
public MigrationProgress(long totalEntries, long copiedEntries, long bytesTransferred, long elapsedMs, long estimatedRemainingMs) Creates an instance of aMigrationProgressrecord class.- Parameters:
totalEntries- the value for thetotalEntriesrecord componentcopiedEntries- the value for thecopiedEntriesrecord componentbytesTransferred- the value for thebytesTransferredrecord componentelapsedMs- the value for theelapsedMsrecord componentestimatedRemainingMs- the value for theestimatedRemainingMsrecord component
-
-
Method Details
-
getProgressPercentage
public double getProgressPercentage() -
getThroughputMBps
public double getThroughputMBps() -
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. -
totalEntries
public long totalEntries()Returns the value of thetotalEntriesrecord component.- Returns:
- the value of the
totalEntriesrecord component
-
copiedEntries
public long copiedEntries()Returns the value of thecopiedEntriesrecord component.- Returns:
- the value of the
copiedEntriesrecord component
-
bytesTransferred
public long bytesTransferred()Returns the value of thebytesTransferredrecord component.- Returns:
- the value of the
bytesTransferredrecord component
-
elapsedMs
public long elapsedMs()Returns the value of theelapsedMsrecord component.- Returns:
- the value of the
elapsedMsrecord component
-
estimatedRemainingMs
public long estimatedRemainingMs()Returns the value of theestimatedRemainingMsrecord component.- Returns:
- the value of the
estimatedRemainingMsrecord component
-