Record Class AutoconfigRunState.StatusSnapshot
java.lang.Object
java.lang.Record
es.urjc.etsii.grafo.autoconfig.service.AutoconfigRunState.StatusSnapshot
- Enclosing class:
AutoconfigRunState
public static record AutoconfigRunState.StatusSnapshot(String runId, AutoconfigRunState.Role role, AutoconfigRunState.RunStatus state, Instant preparedAt, Instant startedAt, Instant finishedAt, Long elapsedMillis, AutoconfigRunState.BudgetSnapshot budget, AutoconfigRunState.EvaluationCounts evaluations, int generatedParameterCount, AutoconfigRunState.IraceProgress irace, AutoconfigRunState.FailureSnapshot failure)
extends Record
-
Constructor Summary
ConstructorsConstructorDescriptionStatusSnapshot(String runId, AutoconfigRunState.Role role, AutoconfigRunState.RunStatus state, Instant preparedAt, Instant startedAt, Instant finishedAt, Long elapsedMillis, AutoconfigRunState.BudgetSnapshot budget, AutoconfigRunState.EvaluationCounts evaluations, int generatedParameterCount, AutoconfigRunState.IraceProgress irace, AutoconfigRunState.FailureSnapshot failure) Creates an instance of aStatusSnapshotrecord class. -
Method Summary
Modifier and TypeMethodDescriptionbudget()Returns the value of thebudgetrecord component.Returns the value of theelapsedMillisrecord component.final booleanIndicates whether some other object is "equal to" this one.Returns the value of theevaluationsrecord component.failure()Returns the value of thefailurerecord component.Returns the value of thefinishedAtrecord component.intReturns the value of thegeneratedParameterCountrecord component.final inthashCode()Returns a hash code value for this object.irace()Returns the value of theiracerecord component.Returns the value of thepreparedAtrecord component.role()Returns the value of therolerecord component.runId()Returns the value of therunIdrecord component.Returns the value of thestartedAtrecord component.state()Returns the value of thestaterecord component.final StringtoString()Returns a string representation of this record class.
-
Constructor Details
-
StatusSnapshot
public StatusSnapshot(String runId, AutoconfigRunState.Role role, AutoconfigRunState.RunStatus state, Instant preparedAt, Instant startedAt, Instant finishedAt, Long elapsedMillis, AutoconfigRunState.BudgetSnapshot budget, AutoconfigRunState.EvaluationCounts evaluations, int generatedParameterCount, AutoconfigRunState.IraceProgress irace, AutoconfigRunState.FailureSnapshot failure) Creates an instance of aStatusSnapshotrecord class.- Parameters:
runId- the value for therunIdrecord componentrole- the value for therolerecord componentstate- the value for thestaterecord componentpreparedAt- the value for thepreparedAtrecord componentstartedAt- the value for thestartedAtrecord componentfinishedAt- the value for thefinishedAtrecord componentelapsedMillis- the value for theelapsedMillisrecord componentbudget- the value for thebudgetrecord componentevaluations- the value for theevaluationsrecord componentgeneratedParameterCount- the value for thegeneratedParameterCountrecord componentirace- the value for theiracerecord componentfailure- the value for thefailurerecord 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. -
runId
Returns the value of therunIdrecord component.- Returns:
- the value of the
runIdrecord component
-
role
Returns the value of therolerecord component.- Returns:
- the value of the
rolerecord component
-
state
Returns the value of thestaterecord component.- Returns:
- the value of the
staterecord component
-
preparedAt
Returns the value of thepreparedAtrecord component.- Returns:
- the value of the
preparedAtrecord 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
-
elapsedMillis
Returns the value of theelapsedMillisrecord component.- Returns:
- the value of the
elapsedMillisrecord component
-
budget
Returns the value of thebudgetrecord component.- Returns:
- the value of the
budgetrecord component
-
evaluations
Returns the value of theevaluationsrecord component.- Returns:
- the value of the
evaluationsrecord component
-
generatedParameterCount
public int generatedParameterCount()Returns the value of thegeneratedParameterCountrecord component.- Returns:
- the value of the
generatedParameterCountrecord component
-
irace
Returns the value of theiracerecord component.- Returns:
- the value of the
iracerecord component
-
failure
Returns the value of thefailurerecord component.- Returns:
- the value of the
failurerecord component
-