Record Class ClaimedRun

java.lang.Object
java.lang.Record
ch.so.agi.gretl.control.api.ClaimedRun

public record ClaimedRun(String runId, String jobId, String projectDir, List<String> tasks, Map<String,Object> parameters, Map<String,String> secrets, String jvmMaxHeap, List<String> jvmArgs, long timeoutSeconds) extends Record
  • Constructor Details

    • ClaimedRun

      public ClaimedRun(String runId, String jobId, String projectDir, List<String> tasks, Map<String,Object> parameters, Map<String,String> secrets, String jvmMaxHeap, List<String> jvmArgs, long timeoutSeconds)
      Creates an instance of a ClaimedRun record class.
      Parameters:
      runId - the value for the runId record component
      jobId - the value for the jobId record component
      projectDir - the value for the projectDir record component
      tasks - the value for the tasks record component
      parameters - the value for the parameters record component
      secrets - the value for the secrets record component
      jvmMaxHeap - the value for the jvmMaxHeap record component
      jvmArgs - the value for the jvmArgs record component
      timeoutSeconds - the value for the timeoutSeconds 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.
    • runId

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

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

      public String projectDir()
      Returns the value of the projectDir record component.
      Returns:
      the value of the projectDir record component
    • tasks

      public List<String> tasks()
      Returns the value of the tasks record component.
      Returns:
      the value of the tasks record component
    • parameters

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

      public Map<String,String> secrets()
      Returns the value of the secrets record component.
      Returns:
      the value of the secrets record component
    • jvmMaxHeap

      public String jvmMaxHeap()
      Returns the value of the jvmMaxHeap record component.
      Returns:
      the value of the jvmMaxHeap record component
    • jvmArgs

      public List<String> jvmArgs()
      Returns the value of the jvmArgs record component.
      Returns:
      the value of the jvmArgs record component
    • timeoutSeconds

      public long timeoutSeconds()
      Returns the value of the timeoutSeconds record component.
      Returns:
      the value of the timeoutSeconds record component