Record Class WeatherCapabilities

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

public record WeatherCapabilities(int schemaVersion, String sourceId, long issuedAt, long validForMs, WeatherSelection selection, boolean observationIngress, boolean socketPersistence, int maxBatchObservations, int maxBatchBytes, List<WeatherProbe.Job> probeJobs) extends Record implements Serializable
Short-lived Master control advertisement. Reading this document does not authenticate an observation's origin or authorize probes.
See Also:
  • Constructor Summary

    Constructors
    Constructor
    Description
    WeatherCapabilities(int schemaVersion, String sourceId, long issuedAt, long validForMs, WeatherSelection selection, boolean observationIngress, boolean socketPersistence, int maxBatchObservations, int maxBatchBytes)
     
    WeatherCapabilities(int schemaVersion, String sourceId, long issuedAt, long validForMs, WeatherSelection selection, boolean observationIngress, boolean socketPersistence, int maxBatchObservations, int maxBatchBytes, List<WeatherProbe.Job> probeJobs)
    Creates an instance of a WeatherCapabilities record class.
  • Method Summary

    Modifier and Type
    Method
    Description
    final boolean
    Indicates whether some other object is "equal to" this one.
    final int
    Returns a hash code value for this object.
    long
    Returns the value of the issuedAt record component.
    int
    Returns the value of the maxBatchBytes record component.
    int
    Returns the value of the maxBatchObservations record component.
    boolean
    Returns the value of the observationIngress record component.
    Returns the value of the probeJobs record component.
    int
    Returns the value of the schemaVersion record component.
    Returns the value of the selection record component.
    boolean
    Returns the value of the socketPersistence record component.
    Returns the value of the sourceId record component.
    final String
    Returns a string representation of this record class.
    static void
     
    long
    Returns the value of the validForMs record component.

    Methods inherited from class Object

    clone, finalize, getClass, notify, notifyAll, wait, wait, wait
  • Constructor Details

    • WeatherCapabilities

      public WeatherCapabilities(int schemaVersion, String sourceId, long issuedAt, long validForMs, WeatherSelection selection, boolean observationIngress, boolean socketPersistence, int maxBatchObservations, int maxBatchBytes)
    • WeatherCapabilities

      public WeatherCapabilities(int schemaVersion, String sourceId, long issuedAt, long validForMs, WeatherSelection selection, boolean observationIngress, boolean socketPersistence, int maxBatchObservations, int maxBatchBytes, List<WeatherProbe.Job> probeJobs)
      Creates an instance of a WeatherCapabilities record class.
      Parameters:
      schemaVersion - the value for the schemaVersion record component
      sourceId - the value for the sourceId record component
      issuedAt - the value for the issuedAt record component
      validForMs - the value for the validForMs record component
      selection - the value for the selection record component
      observationIngress - the value for the observationIngress record component
      socketPersistence - the value for the socketPersistence record component
      maxBatchObservations - the value for the maxBatchObservations record component
      maxBatchBytes - the value for the maxBatchBytes record component
      probeJobs - the value for the probeJobs record component
  • Method Details

    • validateSource

      public static void validateSource(String sourceId)
    • 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
    • sourceId

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

      public long issuedAt()
      Returns the value of the issuedAt record component.
      Returns:
      the value of the issuedAt record component
    • validForMs

      public long validForMs()
      Returns the value of the validForMs record component.
      Returns:
      the value of the validForMs record component
    • selection

      public WeatherSelection selection()
      Returns the value of the selection record component.
      Returns:
      the value of the selection record component
    • observationIngress

      public boolean observationIngress()
      Returns the value of the observationIngress record component.
      Returns:
      the value of the observationIngress record component
    • socketPersistence

      public boolean socketPersistence()
      Returns the value of the socketPersistence record component.
      Returns:
      the value of the socketPersistence record component
    • maxBatchObservations

      public int maxBatchObservations()
      Returns the value of the maxBatchObservations record component.
      Returns:
      the value of the maxBatchObservations record component
    • maxBatchBytes

      public int maxBatchBytes()
      Returns the value of the maxBatchBytes record component.
      Returns:
      the value of the maxBatchBytes record component
    • probeJobs

      public List<WeatherProbe.Job> probeJobs()
      Returns the value of the probeJobs record component.
      Returns:
      the value of the probeJobs record component