Record Class DatabeanExportTracker
java.lang.Object
java.lang.Record
io.datarouter.plugin.dataexport.service.exporting.DatabeanExportTracker
public record DatabeanExportTracker(DatabeanExportTracker.Nested.DatabeanExportTrackerType type, io.datarouter.types.Ulid exportId, String clientName, String tableName, int threadCount, io.datarouter.util.Count databeanCount, AtomicInteger completedPartCount, AtomicInteger totalParts, AtomicInteger partId, SortedSet<Integer> activePartIds, RateTracker rateTracker, AtomicReference<io.datarouter.model.key.primary.PrimaryKey<?>> lastKey, Instant startTime, Duration logDelay)
extends Record
-
Nested Class Summary
Nested Classes -
Constructor Summary
ConstructorsConstructorDescriptionDatabeanExportTracker(DatabeanExportTracker.Nested.DatabeanExportTrackerType type, io.datarouter.types.Ulid exportId, String clientName, String tableName, int threadCount, io.datarouter.util.Count databeanCount, AtomicInteger completedPartCount, AtomicInteger totalParts, AtomicInteger partId, SortedSet<Integer> activePartIds, RateTracker rateTracker, AtomicReference<io.datarouter.model.key.primary.PrimaryKey<?>> lastKey, Instant startTime, Duration logDelay) Creates an instance of aDatabeanExportTrackerrecord class.DatabeanExportTracker(DatabeanExportTracker.Nested.DatabeanExportTrackerType type, io.datarouter.types.Ulid exportId, String clientName, String tableName, int threadCount, Duration logDelay) -
Method Summary
Modifier and TypeMethodDescriptionReturns the value of theactivePartIdsrecord component.Returns the value of theclientNamerecord component.Returns the value of thecompletedPartCountrecord component.io.datarouter.util.CountReturns the value of thedatabeanCountrecord component.final booleanIndicates whether some other object is "equal to" this one.io.datarouter.types.UlidexportId()Returns the value of theexportIdrecord component.final inthashCode()Returns a hash code value for this object.AtomicReference<io.datarouter.model.key.primary.PrimaryKey<?>> lastKey()Returns the value of thelastKeyrecord component.logDelay()Returns the value of thelogDelayrecord component.voidpartId()Returns the value of thepartIdrecord component.Returns the value of therateTrackerrecord component.Returns the value of thestartTimerecord component.Returns the value of thetableNamerecord component.intReturns the value of thethreadCountrecord component.final StringtoString()Returns a string representation of this record class.Returns the value of thetotalPartsrecord component.type()Returns the value of thetyperecord component.
-
Constructor Details
-
DatabeanExportTracker
public DatabeanExportTracker(DatabeanExportTracker.Nested.DatabeanExportTrackerType type, io.datarouter.types.Ulid exportId, String clientName, String tableName, int threadCount, Duration logDelay) -
DatabeanExportTracker
public DatabeanExportTracker(DatabeanExportTracker.Nested.DatabeanExportTrackerType type, io.datarouter.types.Ulid exportId, String clientName, String tableName, int threadCount, io.datarouter.util.Count databeanCount, AtomicInteger completedPartCount, AtomicInteger totalParts, AtomicInteger partId, SortedSet<Integer> activePartIds, RateTracker rateTracker, AtomicReference<io.datarouter.model.key.primary.PrimaryKey<?>> lastKey, Instant startTime, Duration logDelay) Creates an instance of aDatabeanExportTrackerrecord class.- Parameters:
type- the value for thetyperecord componentexportId- the value for theexportIdrecord componentclientName- the value for theclientNamerecord componenttableName- the value for thetableNamerecord componentthreadCount- the value for thethreadCountrecord componentdatabeanCount- the value for thedatabeanCountrecord componentcompletedPartCount- the value for thecompletedPartCountrecord componenttotalParts- the value for thetotalPartsrecord componentpartId- the value for thepartIdrecord componentactivePartIds- the value for theactivePartIdsrecord componentrateTracker- the value for therateTrackerrecord componentlastKey- the value for thelastKeyrecord componentstartTime- the value for thestartTimerecord componentlogDelay- the value for thelogDelayrecord component
-
-
Method Details
-
logProgress
public void logProgress() -
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 '=='. -
type
Returns the value of thetyperecord component.- Returns:
- the value of the
typerecord component
-
exportId
public io.datarouter.types.Ulid exportId()Returns the value of theexportIdrecord component.- Returns:
- the value of the
exportIdrecord component
-
clientName
Returns the value of theclientNamerecord component.- Returns:
- the value of the
clientNamerecord component
-
tableName
Returns the value of thetableNamerecord component.- Returns:
- the value of the
tableNamerecord component
-
threadCount
public int threadCount()Returns the value of thethreadCountrecord component.- Returns:
- the value of the
threadCountrecord component
-
databeanCount
public io.datarouter.util.Count databeanCount()Returns the value of thedatabeanCountrecord component.- Returns:
- the value of the
databeanCountrecord component
-
completedPartCount
Returns the value of thecompletedPartCountrecord component.- Returns:
- the value of the
completedPartCountrecord component
-
totalParts
Returns the value of thetotalPartsrecord component.- Returns:
- the value of the
totalPartsrecord component
-
partId
Returns the value of thepartIdrecord component.- Returns:
- the value of the
partIdrecord component
-
activePartIds
Returns the value of theactivePartIdsrecord component.- Returns:
- the value of the
activePartIdsrecord component
-
rateTracker
Returns the value of therateTrackerrecord component.- Returns:
- the value of the
rateTrackerrecord component
-
lastKey
Returns the value of thelastKeyrecord component.- Returns:
- the value of the
lastKeyrecord component
-
startTime
Returns the value of thestartTimerecord component.- Returns:
- the value of the
startTimerecord component
-
logDelay
Returns the value of thelogDelayrecord component.- Returns:
- the value of the
logDelayrecord component
-