Record Class TaskTrackerDto

java.lang.Object
java.lang.Record
io.datarouter.instrumentation.task.TaskTrackerDto

public record TaskTrackerDto(TaskTrackerKeyDto key, String longRunningTaskType, Instant startTime, Instant finishTime, Instant heartbeatTime, String jobExecutionStatus, String triggeredBy, Long numItemsProcessed, String lastItemProcessed, String exceptionRecordId) extends Record
  • Constructor Details

    • TaskTrackerDto

      public TaskTrackerDto(TaskTrackerKeyDto key, String longRunningTaskType, Instant startTime, Instant finishTime, Instant heartbeatTime, String jobExecutionStatus, String triggeredBy, Long numItemsProcessed, String lastItemProcessed, String exceptionRecordId)
      Creates an instance of a TaskTrackerDto record class.
      Parameters:
      key - the value for the key record component
      longRunningTaskType - the value for the longRunningTaskType record component
      startTime - the value for the startTime record component
      finishTime - the value for the finishTime record component
      heartbeatTime - the value for the heartbeatTime record component
      jobExecutionStatus - the value for the jobExecutionStatus record component
      triggeredBy - the value for the triggeredBy record component
      numItemsProcessed - the value for the numItemsProcessed record component
      lastItemProcessed - the value for the lastItemProcessed record component
      exceptionRecordId - the value for the exceptionRecordId record component
  • Method Details

    • 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. All components in this record class are compared with Objects::equals(Object,Object).
      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.
    • key

      public TaskTrackerKeyDto key()
      Returns the value of the key record component.
      Returns:
      the value of the key record component
    • longRunningTaskType

      public String longRunningTaskType()
      Returns the value of the longRunningTaskType record component.
      Returns:
      the value of the longRunningTaskType record component
    • startTime

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

      public Instant finishTime()
      Returns the value of the finishTime record component.
      Returns:
      the value of the finishTime record component
    • heartbeatTime

      public Instant heartbeatTime()
      Returns the value of the heartbeatTime record component.
      Returns:
      the value of the heartbeatTime record component
    • jobExecutionStatus

      public String jobExecutionStatus()
      Returns the value of the jobExecutionStatus record component.
      Returns:
      the value of the jobExecutionStatus record component
    • triggeredBy

      public String triggeredBy()
      Returns the value of the triggeredBy record component.
      Returns:
      the value of the triggeredBy record component
    • numItemsProcessed

      public Long numItemsProcessed()
      Returns the value of the numItemsProcessed record component.
      Returns:
      the value of the numItemsProcessed record component
    • lastItemProcessed

      public String lastItemProcessed()
      Returns the value of the lastItemProcessed record component.
      Returns:
      the value of the lastItemProcessed record component
    • exceptionRecordId

      public String exceptionRecordId()
      Returns the value of the exceptionRecordId record component.
      Returns:
      the value of the exceptionRecordId record component