Package org.javastro.ivoa.registry.tap
Record Class RegTapLoader.LoadStatus
java.lang.Object
java.lang.Record
org.javastro.ivoa.registry.tap.RegTapLoader.LoadStatus
- Enclosing class:
- RegTapLoader
public static record RegTapLoader.LoadStatus(RegTapLoader.State state, int total, int processed, String currentDocument, Instant started, Instant finished, String error)
extends Record
Snapshot of the progress of the (most recent) load job.
-
Constructor Summary
ConstructorsConstructorDescriptionLoadStatus(RegTapLoader.State state, int total, int processed, String currentDocument, Instant started, Instant finished, String error) Creates an instance of aLoadStatusrecord class. -
Method Summary
Modifier and TypeMethodDescriptionReturns the value of thecurrentDocumentrecord component.final booleanIndicates whether some other object is "equal to" this one.error()Returns the value of theerrorrecord component.finished()Returns the value of thefinishedrecord component.final inthashCode()Returns a hash code value for this object.intReturns the value of theprocessedrecord component.started()Returns the value of thestartedrecord component.state()Returns the value of thestaterecord component.final StringtoString()Returns a string representation of this record class.inttotal()Returns the value of thetotalrecord component.
-
Constructor Details
-
LoadStatus
public LoadStatus(RegTapLoader.State state, int total, int processed, String currentDocument, Instant started, Instant finished, String error) Creates an instance of aLoadStatusrecord class.- Parameters:
state- the value for thestaterecord componenttotal- the value for thetotalrecord componentprocessed- the value for theprocessedrecord componentcurrentDocument- the value for thecurrentDocumentrecord componentstarted- the value for thestartedrecord componentfinished- the value for thefinishedrecord componenterror- the value for theerrorrecord component
-
-
Method Details
-
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 '=='. -
state
Returns the value of thestaterecord component.- Returns:
- the value of the
staterecord component
-
total
public int total()Returns the value of thetotalrecord component.- Returns:
- the value of the
totalrecord component
-
processed
public int processed()Returns the value of theprocessedrecord component.- Returns:
- the value of the
processedrecord component
-
currentDocument
Returns the value of thecurrentDocumentrecord component.- Returns:
- the value of the
currentDocumentrecord component
-
started
Returns the value of thestartedrecord component.- Returns:
- the value of the
startedrecord component
-
finished
Returns the value of thefinishedrecord component.- Returns:
- the value of the
finishedrecord component
-
error
Returns the value of theerrorrecord component.- Returns:
- the value of the
errorrecord component
-