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
  • 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 a DatabeanExportTracker record class.
      Parameters:
      type - the value for the type record component
      exportId - the value for the exportId record component
      clientName - the value for the clientName record component
      tableName - the value for the tableName record component
      threadCount - the value for the threadCount record component
      databeanCount - the value for the databeanCount record component
      completedPartCount - the value for the completedPartCount record component
      totalParts - the value for the totalParts record component
      partId - the value for the partId record component
      activePartIds - the value for the activePartIds record component
      rateTracker - the value for the rateTracker record component
      lastKey - the value for the lastKey record component
      startTime - the value for the startTime record component
      logDelay - the value for the logDelay record component
  • Method Details

    • logProgress

      public void logProgress()
    • toString

      public final String 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.
      Specified by:
      toString in class Record
      Returns:
      a string representation of this object
    • 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.
      Specified by:
      hashCode in class Record
      Returns:
      a hash code value for this object
    • equals

      public final boolean equals(Object o)
      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 with Objects::equals(Object,Object); primitive components are compared with '=='.
      Specified by:
      equals in class Record
      Parameters:
      o - the object with which to compare
      Returns:
      true if this object is the same as the o argument; false otherwise.
    • type

      Returns the value of the type record component.
      Returns:
      the value of the type record component
    • exportId

      public io.datarouter.types.Ulid exportId()
      Returns the value of the exportId record component.
      Returns:
      the value of the exportId record component
    • clientName

      public String clientName()
      Returns the value of the clientName record component.
      Returns:
      the value of the clientName record component
    • tableName

      public String tableName()
      Returns the value of the tableName record component.
      Returns:
      the value of the tableName record component
    • threadCount

      public int threadCount()
      Returns the value of the threadCount record component.
      Returns:
      the value of the threadCount record component
    • databeanCount

      public io.datarouter.util.Count databeanCount()
      Returns the value of the databeanCount record component.
      Returns:
      the value of the databeanCount record component
    • completedPartCount

      public AtomicInteger completedPartCount()
      Returns the value of the completedPartCount record component.
      Returns:
      the value of the completedPartCount record component
    • totalParts

      public AtomicInteger totalParts()
      Returns the value of the totalParts record component.
      Returns:
      the value of the totalParts record component
    • partId

      public AtomicInteger partId()
      Returns the value of the partId record component.
      Returns:
      the value of the partId record component
    • activePartIds

      public SortedSet<Integer> activePartIds()
      Returns the value of the activePartIds record component.
      Returns:
      the value of the activePartIds record component
    • rateTracker

      public RateTracker rateTracker()
      Returns the value of the rateTracker record component.
      Returns:
      the value of the rateTracker record component
    • lastKey

      public AtomicReference<io.datarouter.model.key.primary.PrimaryKey<?>> lastKey()
      Returns the value of the lastKey record component.
      Returns:
      the value of the lastKey record component
    • startTime

      public Instant startTime()
      Returns the value of the startTime record component.
      Returns:
      the value of the startTime record component
    • logDelay

      public Duration logDelay()
      Returns the value of the logDelay record component.
      Returns:
      the value of the logDelay record component