Record Class JobAttemptSummaryDTO
java.lang.Object
java.lang.Record
com.bluebell.greenhouse.platform.models.api.dto.job.JobAttemptSummaryDTO
- Record Components:
jobId- public attempt identifierparentJobId- parent attempt identifierattemptNumber- lineage numberstatus- lifecycle statusqueuedAt- queue timeexecutionTime- execution startcompletionTime- completion timeretryActor- retry actorretryReason- retry reason
public record JobAttemptSummaryDTO(String jobId, String parentJobId, int attemptNumber, EnumDisplay status, LocalDateTime queuedAt, LocalDateTime executionTime, LocalDateTime completionTime, String retryActor, String retryReason)
extends Record
One immutable attempt in a job lineage.
- Version:
- 3.0.6
- Author:
- Stephen Prizio
-
Constructor Summary
ConstructorsConstructorDescriptionJobAttemptSummaryDTO(String jobId, String parentJobId, int attemptNumber, EnumDisplay status, LocalDateTime queuedAt, LocalDateTime executionTime, LocalDateTime completionTime, String retryActor, String retryReason) Creates an instance of aJobAttemptSummaryDTOrecord class. -
Method Summary
Modifier and TypeMethodDescriptionintReturns the value of theattemptNumberrecord component.Returns the value of thecompletionTimerecord component.final booleanIndicates whether some other object is "equal to" this one.Returns the value of theexecutionTimerecord component.final inthashCode()Returns a hash code value for this object.jobId()Returns the value of thejobIdrecord component.Returns the value of theparentJobIdrecord component.queuedAt()Returns the value of thequeuedAtrecord component.Returns the value of theretryActorrecord component.Returns the value of theretryReasonrecord component.status()Returns the value of thestatusrecord component.final StringtoString()Returns a string representation of this record class.
-
Constructor Details
-
JobAttemptSummaryDTO
public JobAttemptSummaryDTO(String jobId, String parentJobId, int attemptNumber, EnumDisplay status, LocalDateTime queuedAt, LocalDateTime executionTime, LocalDateTime completionTime, String retryActor, String retryReason) Creates an instance of aJobAttemptSummaryDTOrecord class.- Parameters:
jobId- the value for thejobIdrecord componentparentJobId- the value for theparentJobIdrecord componentattemptNumber- the value for theattemptNumberrecord componentstatus- the value for thestatusrecord componentqueuedAt- the value for thequeuedAtrecord componentexecutionTime- the value for theexecutionTimerecord componentcompletionTime- the value for thecompletionTimerecord componentretryActor- the value for theretryActorrecord componentretryReason- the value for theretryReasonrecord 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
-
parentJobId
Returns the value of theparentJobIdrecord component.- Returns:
- the value of the
parentJobIdrecord component
-
attemptNumber
public int attemptNumber()Returns the value of theattemptNumberrecord component.- Returns:
- the value of the
attemptNumberrecord component
-
status
-
queuedAt
-
executionTime
Returns the value of theexecutionTimerecord component.- Returns:
- the value of the
executionTimerecord component
-
completionTime
Returns the value of thecompletionTimerecord component.- Returns:
- the value of the
completionTimerecord component
-
retryActor
Returns the value of theretryActorrecord component.- Returns:
- the value of the
retryActorrecord component
-
retryReason
Returns the value of theretryReasonrecord component.- Returns:
- the value of the
retryReasonrecord component
-