Package dev.dokimos.server.dto.v1
Record Class EvalJobView
java.lang.Object
java.lang.Record
dev.dokimos.server.dto.v1.EvalJobView
public record EvalJobView(UUID id, UUID runId, UUID connectionId, String evaluatorName, EvalJobStatus status, int attemptCount, String lastError, Instant createdAt, Instant claimedAt, Instant completedAt)
extends Record
Public view of an
EvalJob, returned by the enqueue endpoint and the per-run job listing.-
Constructor Summary
ConstructorsConstructorDescriptionEvalJobView(UUID id, UUID runId, UUID connectionId, String evaluatorName, EvalJobStatus status, int attemptCount, String lastError, Instant createdAt, Instant claimedAt, Instant completedAt) Creates an instance of aEvalJobViewrecord class. -
Method Summary
Modifier and TypeMethodDescriptionintReturns the value of theattemptCountrecord component.Returns the value of theclaimedAtrecord component.Returns the value of thecompletedAtrecord component.Returns the value of theconnectionIdrecord component.Returns the value of thecreatedAtrecord component.final booleanIndicates whether some other object is "equal to" this one.Returns the value of theevaluatorNamerecord component.static EvalJobViewfinal inthashCode()Returns a hash code value for this object.id()Returns the value of theidrecord component.Returns the value of thelastErrorrecord component.runId()Returns the value of therunIdrecord component.status()Returns the value of thestatusrecord component.final StringtoString()Returns a string representation of this record class.
-
Constructor Details
-
EvalJobView
public EvalJobView(UUID id, UUID runId, UUID connectionId, String evaluatorName, EvalJobStatus status, int attemptCount, String lastError, Instant createdAt, Instant claimedAt, Instant completedAt) Creates an instance of aEvalJobViewrecord class.- Parameters:
id- the value for theidrecord componentrunId- the value for therunIdrecord componentconnectionId- the value for theconnectionIdrecord componentevaluatorName- the value for theevaluatorNamerecord componentstatus- the value for thestatusrecord componentattemptCount- the value for theattemptCountrecord componentlastError- the value for thelastErrorrecord componentcreatedAt- the value for thecreatedAtrecord componentclaimedAt- the value for theclaimedAtrecord componentcompletedAt- the value for thecompletedAtrecord component
-
-
Method Details
-
from
-
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 '=='. -
id
Returns the value of theidrecord component.- Returns:
- the value of the
idrecord component
-
runId
Returns the value of therunIdrecord component.- Returns:
- the value of the
runIdrecord component
-
connectionId
Returns the value of theconnectionIdrecord component.- Returns:
- the value of the
connectionIdrecord component
-
evaluatorName
Returns the value of theevaluatorNamerecord component.- Returns:
- the value of the
evaluatorNamerecord component
-
status
Returns the value of thestatusrecord component.- Returns:
- the value of the
statusrecord component
-
attemptCount
public int attemptCount()Returns the value of theattemptCountrecord component.- Returns:
- the value of the
attemptCountrecord component
-
lastError
Returns the value of thelastErrorrecord component.- Returns:
- the value of the
lastErrorrecord component
-
createdAt
Returns the value of thecreatedAtrecord component.- Returns:
- the value of the
createdAtrecord component
-
claimedAt
Returns the value of theclaimedAtrecord component.- Returns:
- the value of the
claimedAtrecord component
-
completedAt
Returns the value of thecompletedAtrecord component.- Returns:
- the value of the
completedAtrecord component
-