Package org.graylog2.indexer.migration
Record Class TaskStatus
java.lang.Object
java.lang.Record
org.graylog2.indexer.migration.TaskStatus
-
Constructor Summary
ConstructorsConstructorDescriptionTaskStatus(long total, long updated, long created, long deleted, long batches, long versionConflicts, long noops, List<String> failures) Creates an instance of aTaskStatusrecord class. -
Method Summary
Modifier and TypeMethodDescriptionlongbatches()Returns the value of thebatchesrecord component.longcreated()Returns the value of thecreatedrecord component.longdeleted()Returns the value of thedeletedrecord component.final booleanIndicates whether some other object is "equal to" this one.static TaskStatusfailures()Returns the value of thefailuresrecord component.booleanfinal inthashCode()Returns a hash code value for this object.longnoops()Returns the value of thenoopsrecord component.final StringtoString()Returns a string representation of this record class.longtotal()Returns the value of thetotalrecord component.static TaskStatusunknown()longupdated()Returns the value of theupdatedrecord component.longReturns the value of theversionConflictsrecord component.
-
Constructor Details
-
TaskStatus
public TaskStatus(long total, long updated, long created, long deleted, long batches, long versionConflicts, long noops, List<String> failures) Creates an instance of aTaskStatusrecord class.- Parameters:
total- the value for thetotalrecord componentupdated- the value for theupdatedrecord componentcreated- the value for thecreatedrecord componentdeleted- the value for thedeletedrecord componentbatches- the value for thebatchesrecord componentversionConflicts- the value for theversionConflictsrecord componentnoops- the value for thenoopsrecord componentfailures- the value for thefailuresrecord component
-
-
Method Details
-
unknown
-
failure
-
hasFailures
public boolean hasFailures() -
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. Reference components are compared withObjects::equals(Object,Object); primitive components are compared with '=='. -
total
public long total()Returns the value of thetotalrecord component.- Returns:
- the value of the
totalrecord component
-
updated
public long updated()Returns the value of theupdatedrecord component.- Returns:
- the value of the
updatedrecord component
-
created
public long created()Returns the value of thecreatedrecord component.- Returns:
- the value of the
createdrecord component
-
deleted
public long deleted()Returns the value of thedeletedrecord component.- Returns:
- the value of the
deletedrecord component
-
batches
public long batches()Returns the value of thebatchesrecord component.- Returns:
- the value of the
batchesrecord 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
-
failures
Returns the value of thefailuresrecord component.- Returns:
- the value of the
failuresrecord component
-