Package ch.so.agi.gretl.control.api
Record Class ClaimedRun
java.lang.Object
java.lang.Record
ch.so.agi.gretl.control.api.ClaimedRun
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionfinal booleanIndicates whether some other object is "equal to" this one.final inthashCode()Returns a hash code value for this object.jobId()Returns the value of thejobIdrecord component.jvmArgs()Returns the value of thejvmArgsrecord component.Returns the value of thejvmMaxHeaprecord component.Returns the value of theparametersrecord component.Returns the value of theprojectDirrecord component.runId()Returns the value of therunIdrecord component.secrets()Returns the value of thesecretsrecord component.tasks()Returns the value of thetasksrecord component.longReturns the value of thetimeoutSecondsrecord component.final StringtoString()Returns a string representation of this record class.
-
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 aClaimedRunrecord class.- Parameters:
runId- the value for therunIdrecord componentjobId- the value for thejobIdrecord componentprojectDir- the value for theprojectDirrecord componenttasks- the value for thetasksrecord componentparameters- the value for theparametersrecord componentsecrets- the value for thesecretsrecord componentjvmMaxHeap- the value for thejvmMaxHeaprecord componentjvmArgs- the value for thejvmArgsrecord componenttimeoutSeconds- the value for thetimeoutSecondsrecord component
-
-
Method Details
-
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 '=='. -
runId
Returns the value of therunIdrecord component.- Returns:
- the value of the
runIdrecord component
-
jobId
Returns the value of thejobIdrecord component.- Returns:
- the value of the
jobIdrecord component
-
projectDir
Returns the value of theprojectDirrecord component.- Returns:
- the value of the
projectDirrecord component
-
tasks
Returns the value of thetasksrecord component.- Returns:
- the value of the
tasksrecord component
-
parameters
Returns the value of theparametersrecord component.- Returns:
- the value of the
parametersrecord component
-
secrets
Returns the value of thesecretsrecord component.- Returns:
- the value of the
secretsrecord component
-
jvmMaxHeap
Returns the value of thejvmMaxHeaprecord component.- Returns:
- the value of the
jvmMaxHeaprecord component
-
jvmArgs
Returns the value of thejvmArgsrecord component.- Returns:
- the value of the
jvmArgsrecord component
-
timeoutSeconds
public long timeoutSeconds()Returns the value of thetimeoutSecondsrecord component.- Returns:
- the value of the
timeoutSecondsrecord component
-