Record Class ResultsProtocol.State.Failed
java.lang.Object
java.lang.Record
gov.nasa.jpl.aerie.scheduler.server.ResultsProtocol.State.Failed
- Record Components:
reason- description of why the scheduling operation failed
- All Implemented Interfaces:
ResultsProtocol.State
- Enclosing interface:
ResultsProtocol.State
public static record ResultsProtocol.State.Failed(ScheduleFailure reason, long analysisId)
extends Record
implements ResultsProtocol.State
scheduling failed; likely need to change inputs before re-running
-
Nested Class Summary
Nested classes/interfaces inherited from interface gov.nasa.jpl.aerie.scheduler.server.ResultsProtocol.State
ResultsProtocol.State.Failed, ResultsProtocol.State.Incomplete, ResultsProtocol.State.Pending, ResultsProtocol.State.Success -
Constructor Summary
ConstructorsConstructorDescriptionFailed(ScheduleFailure reason, long analysisId) Creates an instance of aFailedrecord class. -
Method Summary
Modifier and TypeMethodDescriptionlongReturns the value of theanalysisIdrecord component.final booleanIndicates whether some other object is "equal to" this one.final inthashCode()Returns a hash code value for this object.reason()Returns the value of thereasonrecord component.final StringtoString()Returns a string representation of this record class.
-
Constructor Details
-
Failed
Creates an instance of aFailedrecord class.- Parameters:
reason- the value for thereasonrecord componentanalysisId- the value for theanalysisIdrecord 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 '=='. -
reason
Returns the value of thereasonrecord component.- Returns:
- the value of the
reasonrecord component
-
analysisId
public long analysisId()Returns the value of theanalysisIdrecord component.- Specified by:
analysisIdin interfaceResultsProtocol.State- Returns:
- the value of the
analysisIdrecord component
-