Record Class RunRecord

java.lang.Object
java.lang.Record
ch.so.agi.gretl.control.server.persistence.RunRecord

public record RunRecord(String id, String jobId, ch.so.agi.gretl.control.api.RunStatus status, ch.so.agi.gretl.control.api.RunTriggerType triggerType, String triggeredBy, String workerId, Instant queuedAt, Instant claimedAt, Instant startedAt, Instant finishedAt, Integer exitCode, boolean cancelRequested, Map<String,Object> parameters, String message, String logPath) extends Record
  • Constructor Summary

    Constructors
    Constructor
    Description
    RunRecord(String id, String jobId, ch.so.agi.gretl.control.api.RunStatus status, ch.so.agi.gretl.control.api.RunTriggerType triggerType, String triggeredBy, String workerId, Instant queuedAt, Instant claimedAt, Instant startedAt, Instant finishedAt, Integer exitCode, boolean cancelRequested, Map<String,Object> parameters, String message, String logPath)
    Creates an instance of a RunRecord record class.
  • Method Summary

    Modifier and Type
    Method
    Description
    boolean
    Returns the value of the cancelRequested record component.
    Returns the value of the claimedAt record component.
    final boolean
    Indicates whether some other object is "equal to" this one.
    Returns the value of the exitCode record component.
    Returns the value of the finishedAt record component.
    final int
    Returns a hash code value for this object.
    id()
    Returns the value of the id record component.
    Returns the value of the jobId record component.
    Returns the value of the logPath record component.
    Returns the value of the message record component.
    Returns the value of the parameters record component.
    Returns the value of the queuedAt record component.
    Returns the value of the startedAt record component.
    ch.so.agi.gretl.control.api.RunStatus
    Returns the value of the status record component.
    final String
    Returns a string representation of this record class.
    Returns the value of the triggeredBy record component.
    ch.so.agi.gretl.control.api.RunTriggerType
    Returns the value of the triggerType record component.
    Returns the value of the workerId record component.

    Methods inherited from class java.lang.Object

    clone, finalize, getClass, notify, notifyAll, wait, wait, wait
  • Constructor Details

    • RunRecord

      public RunRecord(String id, String jobId, ch.so.agi.gretl.control.api.RunStatus status, ch.so.agi.gretl.control.api.RunTriggerType triggerType, String triggeredBy, String workerId, Instant queuedAt, Instant claimedAt, Instant startedAt, Instant finishedAt, Integer exitCode, boolean cancelRequested, Map<String,Object> parameters, String message, String logPath)
      Creates an instance of a RunRecord record class.
      Parameters:
      id - the value for the id record component
      jobId - the value for the jobId record component
      status - the value for the status record component
      triggerType - the value for the triggerType record component
      triggeredBy - the value for the triggeredBy record component
      workerId - the value for the workerId record component
      queuedAt - the value for the queuedAt record component
      claimedAt - the value for the claimedAt record component
      startedAt - the value for the startedAt record component
      finishedAt - the value for the finishedAt record component
      exitCode - the value for the exitCode record component
      cancelRequested - the value for the cancelRequested record component
      parameters - the value for the parameters record component
      message - the value for the message record component
      logPath - the value for the logPath 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. 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.
    • id

      public String id()
      Returns the value of the id record component.
      Returns:
      the value of the id record component
    • jobId

      public String jobId()
      Returns the value of the jobId record component.
      Returns:
      the value of the jobId record component
    • status

      public ch.so.agi.gretl.control.api.RunStatus status()
      Returns the value of the status record component.
      Returns:
      the value of the status record component
    • triggerType

      public ch.so.agi.gretl.control.api.RunTriggerType triggerType()
      Returns the value of the triggerType record component.
      Returns:
      the value of the triggerType record component
    • triggeredBy

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

      public String workerId()
      Returns the value of the workerId record component.
      Returns:
      the value of the workerId record component
    • queuedAt

      public Instant queuedAt()
      Returns the value of the queuedAt record component.
      Returns:
      the value of the queuedAt record component
    • claimedAt

      public Instant claimedAt()
      Returns the value of the claimedAt record component.
      Returns:
      the value of the claimedAt record component
    • startedAt

      public Instant startedAt()
      Returns the value of the startedAt record component.
      Returns:
      the value of the startedAt record component
    • finishedAt

      public Instant finishedAt()
      Returns the value of the finishedAt record component.
      Returns:
      the value of the finishedAt record component
    • exitCode

      public Integer exitCode()
      Returns the value of the exitCode record component.
      Returns:
      the value of the exitCode record component
    • cancelRequested

      public boolean cancelRequested()
      Returns the value of the cancelRequested record component.
      Returns:
      the value of the cancelRequested record component
    • parameters

      public Map<String,Object> parameters()
      Returns the value of the parameters record component.
      Returns:
      the value of the parameters record component
    • message

      public String message()
      Returns the value of the message record component.
      Returns:
      the value of the message record component
    • logPath

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