Record Class WeatherProbe.Result
java.lang.Object
java.lang.Record
ecmwf.ecpds.master.weather.WeatherProbe.Result
- All Implemented Interfaces:
Serializable
- Enclosing class:
WeatherProbe
public static record WeatherProbe.Result(UUID jobId, UUID sourceEpoch, String sourceId, WeatherProbe.Outcome outcome, long startedAt, long finishedAt, String endpoint, String addressFamily, Double latencyMs, List<WeatherProbe.Hop> hops)
extends Record
implements Serializable
- See Also:
-
Constructor Summary
ConstructorsConstructorDescriptionResult(UUID jobId, UUID sourceEpoch, String sourceId, WeatherProbe.Outcome outcome, long startedAt, long finishedAt, String endpoint, String addressFamily, Double latencyMs, List<WeatherProbe.Hop> hops) Creates an instance of aResultrecord class. -
Method Summary
Modifier and TypeMethodDescriptionReturns the value of theaddressFamilyrecord component.endpoint()Returns the value of theendpointrecord component.final booleanIndicates whether some other object is "equal to" this one.longReturns the value of thefinishedAtrecord component.final inthashCode()Returns a hash code value for this object.hops()Returns the value of thehopsrecord component.jobId()Returns the value of thejobIdrecord component.Returns the value of thelatencyMsrecord component.outcome()Returns the value of theoutcomerecord component.Returns the value of thesourceEpochrecord component.sourceId()Returns the value of thesourceIdrecord component.longReturns the value of thestartedAtrecord component.final StringtoString()Returns a string representation of this record class.
-
Constructor Details
-
Result
public Result(UUID jobId, UUID sourceEpoch, String sourceId, WeatherProbe.Outcome outcome, long startedAt, long finishedAt, String endpoint, String addressFamily, Double latencyMs, List<WeatherProbe.Hop> hops) Creates an instance of aResultrecord class.- Parameters:
jobId- the value for thejobIdrecord componentsourceEpoch- the value for thesourceEpochrecord componentsourceId- the value for thesourceIdrecord componentoutcome- the value for theoutcomerecord componentstartedAt- the value for thestartedAtrecord componentfinishedAt- the value for thefinishedAtrecord componentendpoint- the value for theendpointrecord componentaddressFamily- the value for theaddressFamilyrecord componentlatencyMs- the value for thelatencyMsrecord componenthops- the value for thehopsrecord 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. -
jobId
Returns the value of thejobIdrecord component.- Returns:
- the value of the
jobIdrecord component
-
sourceEpoch
Returns the value of thesourceEpochrecord component.- Returns:
- the value of the
sourceEpochrecord component
-
sourceId
Returns the value of thesourceIdrecord component.- Returns:
- the value of the
sourceIdrecord component
-
outcome
Returns the value of theoutcomerecord component.- Returns:
- the value of the
outcomerecord component
-
startedAt
public long startedAt()Returns the value of thestartedAtrecord component.- Returns:
- the value of the
startedAtrecord component
-
finishedAt
public long finishedAt()Returns the value of thefinishedAtrecord component.- Returns:
- the value of the
finishedAtrecord component
-
endpoint
Returns the value of theendpointrecord component.- Returns:
- the value of the
endpointrecord component
-
addressFamily
Returns the value of theaddressFamilyrecord component.- Returns:
- the value of the
addressFamilyrecord component
-
latencyMs
Returns the value of thelatencyMsrecord component.- Returns:
- the value of the
latencyMsrecord component
-
hops
Returns the value of thehopsrecord component.- Returns:
- the value of the
hopsrecord component
-