Record Class RunFailedEvent
java.lang.Object
java.lang.Record
com.knezevic.edaf.v3.core.events.RunFailedEvent
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionReturns the value of thealgorithmrecord component.final booleanIndicates whether some other object is "equal to" this one.Returns the value of theerrorMessagerecord component.final inthashCode()Returns a hash code value for this object.longReturns the value of themasterSeedrecord component.model()Returns the value of themodelrecord component.problem()Returns the value of theproblemrecord component.Returns the value of theresumedFromrecord component.runId()Returns the value of therunIdrecord component.Returns the value of thetimestamprecord component.final StringtoString()Returns a string representation of this record class.type()Event type for structured logging.
-
Constructor Details
-
RunFailedEvent
public RunFailedEvent(String runId, Instant timestamp, String algorithm, String model, String problem, long masterSeed, String errorMessage, String resumedFrom) Creates an instance of aRunFailedEventrecord class.- Parameters:
runId- the value for therunIdrecord componenttimestamp- the value for thetimestamprecord componentalgorithm- the value for thealgorithmrecord componentmodel- the value for themodelrecord componentproblem- the value for theproblemrecord componentmasterSeed- the value for themasterSeedrecord componenterrorMessage- the value for theerrorMessagerecord componentresumedFrom- the value for theresumedFromrecord component
-
-
Method Details
-
type
-
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. -
runId
-
timestamp
-
algorithm
Returns the value of thealgorithmrecord component.- Returns:
- the value of the
algorithmrecord component
-
model
Returns the value of themodelrecord component.- Returns:
- the value of the
modelrecord component
-
problem
Returns the value of theproblemrecord component.- Returns:
- the value of the
problemrecord component
-
masterSeed
public long masterSeed()Returns the value of themasterSeedrecord component.- Returns:
- the value of the
masterSeedrecord component
-
errorMessage
Returns the value of theerrorMessagerecord component.- Returns:
- the value of the
errorMessagerecord component
-
resumedFrom
Returns the value of theresumedFromrecord component.- Returns:
- the value of the
resumedFromrecord component
-