Package org.graylog2.indexer.migration
Record Class IndexMigrationProgress
java.lang.Object
java.lang.Record
org.graylog2.indexer.migration.IndexMigrationProgress
public record IndexMigrationProgress(long total, long created, long updated, long deleted, long versionConflicts, long noops)
extends Record
-
Constructor Summary
ConstructorsConstructorDescriptionIndexMigrationProgress(long total, long created, long updated, long deleted, long versionConflicts, long noops) Creates an instance of aIndexMigrationProgressrecord class. -
Method Summary
Modifier and TypeMethodDescriptionlongcreated()Returns the value of thecreatedrecord component.longdeleted()Returns the value of thedeletedrecord component.final booleanIndicates whether some other object is "equal to" this one.final inthashCode()Returns a hash code value for this object.longnoops()Returns the value of thenoopsrecord component.progress()intfinal StringtoString()Returns a string representation of this record class.longtotal()Returns the value of thetotalrecord component.longupdated()Returns the value of theupdatedrecord component.longReturns the value of theversionConflictsrecord component.
-
Constructor Details
-
IndexMigrationProgress
public IndexMigrationProgress(long total, long created, long updated, long deleted, long versionConflicts, long noops) Creates an instance of aIndexMigrationProgressrecord class.- Parameters:
total- the value for thetotalrecord componentcreated- the value for thecreatedrecord componentupdated- the value for theupdatedrecord componentdeleted- the value for thedeletedrecord componentversionConflicts- the value for theversionConflictsrecord componentnoops- the value for thenoopsrecord component
-
-
Method Details
-
progressPercent
public int progressPercent() -
progress
- Returns:
- Value between 0 and 1, progress of the index migration
-
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. -
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. -
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 '=='. -
total
public long total()Returns the value of thetotalrecord component.- Returns:
- the value of the
totalrecord component
-
created
public long created()Returns the value of thecreatedrecord component.- Returns:
- the value of the
createdrecord component
-
updated
public long updated()Returns the value of theupdatedrecord component.- Returns:
- the value of the
updatedrecord component
-
deleted
public long deleted()Returns the value of thedeletedrecord component.- Returns:
- the value of the
deletedrecord component
-
versionConflicts
public long versionConflicts()Returns the value of theversionConflictsrecord component.- Returns:
- the value of the
versionConflictsrecord component
-
noops
public long noops()Returns the value of thenoopsrecord component.- Returns:
- the value of the
noopsrecord component
-