Record Class JobSubmission
java.lang.Object
java.lang.Record
com.bluebell.greenhouse.platform.models.core.nonentities.job.JobSubmission
- Record Components:
jobId- public attempt identifierrootJobId- public root identifierattemptNumber- lineage attempt numberstatus- initial lifecycle statusqueuedAt- queue timestampnotBefore- earliest execution timededuplicated- whether an existing submission was returned
public record JobSubmission(String jobId, String rootJobId, int attemptNumber, JobStatus status, LocalDateTime queuedAt, LocalDateTime notBefore, boolean deduplicated)
extends Record
Result returned after a complete job plan has been committed.
- Version:
- 3.0.6
- Author:
- Stephen Prizio
-
Constructor Summary
ConstructorsConstructorDescriptionJobSubmission(String jobId, String rootJobId, int attemptNumber, JobStatus status, LocalDateTime queuedAt, LocalDateTime notBefore, boolean deduplicated) Creates an instance of aJobSubmissionrecord class. -
Method Summary
Modifier and TypeMethodDescriptionintReturns the value of theattemptNumberrecord component.booleanReturns the value of thededuplicatedrecord component.final 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.Returns the value of thenotBeforerecord component.queuedAt()Returns the value of thequeuedAtrecord component.Returns the value of therootJobIdrecord component.status()Returns the value of thestatusrecord component.final StringtoString()Returns a string representation of this record class.
-
Constructor Details
-
JobSubmission
public JobSubmission(String jobId, String rootJobId, int attemptNumber, JobStatus status, LocalDateTime queuedAt, LocalDateTime notBefore, boolean deduplicated) Creates an instance of aJobSubmissionrecord class.- Parameters:
jobId- the value for thejobIdrecord componentrootJobId- the value for therootJobIdrecord componentattemptNumber- the value for theattemptNumberrecord componentstatus- the value for thestatusrecord componentqueuedAt- the value for thequeuedAtrecord componentnotBefore- the value for thenotBeforerecord componentdeduplicated- the value for thededuplicatedrecord component
-
-
Method Details
-
toString
-
hashCode
-
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 thecomparemethod from their corresponding wrapper classes. -
jobId
-
rootJobId
-
attemptNumber
public int attemptNumber()Returns the value of theattemptNumberrecord component.- Returns:
- the value of the
attemptNumberrecord component
-
status
-
queuedAt
-
notBefore
-
deduplicated
public boolean deduplicated()Returns the value of thededuplicatedrecord component.- Returns:
- the value of the
deduplicatedrecord component
-