Record Class WeatherObservation

java.lang.Object
java.lang.Record
ecmwf.ecpds.master.weather.WeatherObservation
All Implemented Interfaces:
Serializable

public record WeatherObservation(int schemaVersion, UUID eventId, UUID executionId, UUID sourceEpoch, String sourceId, long transferId, String destinationId, String hostId, String configuredTarget, String protocol, String leg, long selectionRevision, WeatherObservation.Kind kind, WeatherObservation.Outcome outcome, WeatherObservation.Category category, long occurredAt, List<WeatherObservation.Connection> connections) extends Record implements Serializable
Immutable source evidence. A sending can contain several connection attempts; its terminal outcome is not an outcome for each socket.
See Also:
  • Field Details

  • Constructor Details

    • WeatherObservation

      public WeatherObservation(int schemaVersion, UUID eventId, UUID executionId, UUID sourceEpoch, String sourceId, long transferId, String destinationId, String hostId, String configuredTarget, String protocol, String leg, long selectionRevision, WeatherObservation.Kind kind, WeatherObservation.Outcome outcome, WeatherObservation.Category category, long occurredAt, List<WeatherObservation.Connection> connections)
      Creates an instance of a WeatherObservation record class.
      Parameters:
      schemaVersion - the value for the schemaVersion record component
      eventId - the value for the eventId record component
      executionId - the value for the executionId record component
      sourceEpoch - the value for the sourceEpoch record component
      sourceId - the value for the sourceId record component
      transferId - the value for the transferId record component
      destinationId - the value for the destinationId record component
      hostId - the value for the hostId record component
      configuredTarget - the value for the configuredTarget record component
      protocol - the value for the protocol record component
      leg - the value for the leg record component
      selectionRevision - the value for the selectionRevision record component
      kind - the value for the kind record component
      outcome - the value for the outcome record component
      category - the value for the category record component
      occurredAt - the value for the occurredAt record component
      connections - the value for the connections record component
  • Method Details

    • path

      public WeatherObservation.Path path()
    • 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.
    • schemaVersion

      public int schemaVersion()
      Returns the value of the schemaVersion record component.
      Returns:
      the value of the schemaVersion record component
    • eventId

      public UUID eventId()
      Returns the value of the eventId record component.
      Returns:
      the value of the eventId record component
    • executionId

      public UUID executionId()
      Returns the value of the executionId record component.
      Returns:
      the value of the executionId 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
    • transferId

      public long transferId()
      Returns the value of the transferId record component.
      Returns:
      the value of the transferId record component
    • destinationId

      public String destinationId()
      Returns the value of the destinationId record component.
      Returns:
      the value of the destinationId record component
    • hostId

      public String hostId()
      Returns the value of the hostId record component.
      Returns:
      the value of the hostId record component
    • configuredTarget

      public String configuredTarget()
      Returns the value of the configuredTarget record component.
      Returns:
      the value of the configuredTarget record component
    • protocol

      public String protocol()
      Returns the value of the protocol record component.
      Returns:
      the value of the protocol record component
    • leg

      public String leg()
      Returns the value of the leg record component.
      Returns:
      the value of the leg record component
    • selectionRevision

      public long selectionRevision()
      Returns the value of the selectionRevision record component.
      Returns:
      the value of the selectionRevision record component
    • kind

      public WeatherObservation.Kind kind()
      Returns the value of the kind record component.
      Returns:
      the value of the kind record component
    • outcome

      public WeatherObservation.Outcome outcome()
      Returns the value of the outcome record component.
      Returns:
      the value of the outcome record component
    • category

      public WeatherObservation.Category category()
      Returns the value of the category record component.
      Returns:
      the value of the category record component
    • occurredAt

      public long occurredAt()
      Returns the value of the occurredAt record component.
      Returns:
      the value of the occurredAt record component
    • connections

      public List<WeatherObservation.Connection> connections()
      Returns the value of the connections record component.
      Returns:
      the value of the connections record component