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 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 a Result record class.
      Parameters:
      jobId - the value for the jobId record component
      sourceEpoch - the value for the sourceEpoch record component
      sourceId - the value for the sourceId record component
      outcome - the value for the outcome record component
      startedAt - the value for the startedAt record component
      finishedAt - the value for the finishedAt record component
      endpoint - the value for the endpoint record component
      addressFamily - the value for the addressFamily record component
      latencyMs - the value for the latencyMs record component
      hops - the value for the hops record component
  • Method Details

    • toString

      public final String 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.
      Specified by:
      toString in class Record
      Returns:
      a string representation of this object
    • 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.
      Specified by:
      hashCode in class Record
      Returns:
      a hash code value for this object
    • equals

      public final boolean equals(Object o)
      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 with Objects::equals(Object,Object); primitive components are compared with the compare method from their corresponding wrapper classes.
      Specified by:
      equals in class Record
      Parameters:
      o - the object with which to compare
      Returns:
      true if this object is the same as the o argument; false otherwise.
    • jobId

      public UUID jobId()
      Returns the value of the jobId record component.
      Returns:
      the value of the jobId record component
    • sourceEpoch

      public UUID sourceEpoch()
      Returns the value of the sourceEpoch record component.
      Returns:
      the value of the sourceEpoch record component
    • sourceId

      public String sourceId()
      Returns the value of the sourceId record component.
      Returns:
      the value of the sourceId record component
    • outcome

      public WeatherProbe.Outcome outcome()
      Returns the value of the outcome record component.
      Returns:
      the value of the outcome record component
    • startedAt

      public long startedAt()
      Returns the value of the startedAt record component.
      Returns:
      the value of the startedAt record component
    • finishedAt

      public long finishedAt()
      Returns the value of the finishedAt record component.
      Returns:
      the value of the finishedAt record component
    • endpoint

      public String endpoint()
      Returns the value of the endpoint record component.
      Returns:
      the value of the endpoint record component
    • addressFamily

      public String addressFamily()
      Returns the value of the addressFamily record component.
      Returns:
      the value of the addressFamily record component
    • latencyMs

      public Double latencyMs()
      Returns the value of the latencyMs record component.
      Returns:
      the value of the latencyMs record component
    • hops

      public List<WeatherProbe.Hop> hops()
      Returns the value of the hops record component.
      Returns:
      the value of the hops record component