Record Class RunRecord
java.lang.Object
java.lang.Record
ch.so.agi.gretl.control.server.persistence.RunRecord
public record RunRecord(String id, String jobId, ch.so.agi.gretl.control.api.RunStatus status, ch.so.agi.gretl.control.api.RunTriggerType triggerType, String triggeredBy, String workerId, Instant queuedAt, Instant claimedAt, Instant startedAt, Instant finishedAt, Integer exitCode, boolean cancelRequested, Map<String,Object> parameters, String message, String logPath)
extends Record
-
Constructor Summary
ConstructorsConstructorDescriptionRunRecord(String id, String jobId, ch.so.agi.gretl.control.api.RunStatus status, ch.so.agi.gretl.control.api.RunTriggerType triggerType, String triggeredBy, String workerId, Instant queuedAt, Instant claimedAt, Instant startedAt, Instant finishedAt, Integer exitCode, boolean cancelRequested, Map<String, Object> parameters, String message, String logPath) Creates an instance of aRunRecordrecord class. -
Method Summary
Modifier and TypeMethodDescriptionbooleanReturns the value of thecancelRequestedrecord component.Returns the value of theclaimedAtrecord component.final booleanIndicates whether some other object is "equal to" this one.exitCode()Returns the value of theexitCoderecord component.Returns the value of thefinishedAtrecord component.final inthashCode()Returns a hash code value for this object.id()Returns the value of theidrecord component.jobId()Returns the value of thejobIdrecord component.logPath()Returns the value of thelogPathrecord component.message()Returns the value of themessagerecord component.Returns the value of theparametersrecord component.queuedAt()Returns the value of thequeuedAtrecord component.Returns the value of thestartedAtrecord component.ch.so.agi.gretl.control.api.RunStatusstatus()Returns the value of thestatusrecord component.final StringtoString()Returns a string representation of this record class.Returns the value of thetriggeredByrecord component.ch.so.agi.gretl.control.api.RunTriggerTypeReturns the value of thetriggerTyperecord component.workerId()Returns the value of theworkerIdrecord component.
-
Constructor Details
-
RunRecord
public RunRecord(String id, String jobId, ch.so.agi.gretl.control.api.RunStatus status, ch.so.agi.gretl.control.api.RunTriggerType triggerType, String triggeredBy, String workerId, Instant queuedAt, Instant claimedAt, Instant startedAt, Instant finishedAt, Integer exitCode, boolean cancelRequested, Map<String, Object> parameters, String message, String logPath) Creates an instance of aRunRecordrecord class.- Parameters:
id- the value for theidrecord componentjobId- the value for thejobIdrecord componentstatus- the value for thestatusrecord componenttriggerType- the value for thetriggerTyperecord componenttriggeredBy- the value for thetriggeredByrecord componentworkerId- the value for theworkerIdrecord componentqueuedAt- the value for thequeuedAtrecord componentclaimedAt- the value for theclaimedAtrecord componentstartedAt- the value for thestartedAtrecord componentfinishedAt- the value for thefinishedAtrecord componentexitCode- the value for theexitCoderecord componentcancelRequested- the value for thecancelRequestedrecord componentparameters- the value for theparametersrecord componentmessage- the value for themessagerecord componentlogPath- the value for thelogPathrecord 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 '=='. -
id
Returns the value of theidrecord component.- Returns:
- the value of the
idrecord component
-
jobId
Returns the value of thejobIdrecord component.- Returns:
- the value of the
jobIdrecord component
-
status
public ch.so.agi.gretl.control.api.RunStatus status()Returns the value of thestatusrecord component.- Returns:
- the value of the
statusrecord component
-
triggerType
public ch.so.agi.gretl.control.api.RunTriggerType triggerType()Returns the value of thetriggerTyperecord component.- Returns:
- the value of the
triggerTyperecord component
-
triggeredBy
Returns the value of thetriggeredByrecord component.- Returns:
- the value of the
triggeredByrecord component
-
workerId
Returns the value of theworkerIdrecord component.- Returns:
- the value of the
workerIdrecord component
-
queuedAt
Returns the value of thequeuedAtrecord component.- Returns:
- the value of the
queuedAtrecord component
-
claimedAt
Returns the value of theclaimedAtrecord component.- Returns:
- the value of the
claimedAtrecord component
-
startedAt
Returns the value of thestartedAtrecord component.- Returns:
- the value of the
startedAtrecord component
-
finishedAt
Returns the value of thefinishedAtrecord component.- Returns:
- the value of the
finishedAtrecord component
-
exitCode
Returns the value of theexitCoderecord component.- Returns:
- the value of the
exitCoderecord component
-
cancelRequested
public boolean cancelRequested()Returns the value of thecancelRequestedrecord component.- Returns:
- the value of the
cancelRequestedrecord component
-
parameters
Returns the value of theparametersrecord component.- Returns:
- the value of the
parametersrecord component
-
message
Returns the value of themessagerecord component.- Returns:
- the value of the
messagerecord component
-
logPath
Returns the value of thelogPathrecord component.- Returns:
- the value of the
logPathrecord component
-