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
ConstructorsConstructorDescriptionWeatherCapabilities(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 aWeatherCapabilitiesrecord class. -
Method Summary
Modifier and TypeMethodDescriptionfinal booleanIndicates whether some other object is "equal to" this one.final inthashCode()Returns a hash code value for this object.longissuedAt()Returns the value of theissuedAtrecord component.intReturns the value of themaxBatchBytesrecord component.intReturns the value of themaxBatchObservationsrecord component.booleanReturns the value of theobservationIngressrecord component.Returns the value of theprobeJobsrecord component.intReturns the value of theschemaVersionrecord component.Returns the value of theselectionrecord component.booleanReturns the value of thesocketPersistencerecord component.sourceId()Returns the value of thesourceIdrecord component.final StringtoString()Returns a string representation of this record class.static voidvalidateSource(String sourceId) longReturns the value of thevalidForMsrecord component.
-
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 aWeatherCapabilitiesrecord class.- Parameters:
schemaVersion- the value for theschemaVersionrecord componentsourceId- the value for thesourceIdrecord componentissuedAt- the value for theissuedAtrecord componentvalidForMs- the value for thevalidForMsrecord componentselection- the value for theselectionrecord componentobservationIngress- the value for theobservationIngressrecord componentsocketPersistence- the value for thesocketPersistencerecord componentmaxBatchObservations- the value for themaxBatchObservationsrecord componentmaxBatchBytes- the value for themaxBatchBytesrecord componentprobeJobs- the value for theprobeJobsrecord component
-
-
Method Details
-
validateSource
-
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. -
schemaVersion
public int schemaVersion()Returns the value of theschemaVersionrecord component.- Returns:
- the value of the
schemaVersionrecord component
-
sourceId
Returns the value of thesourceIdrecord component.- Returns:
- the value of the
sourceIdrecord component
-
issuedAt
public long issuedAt()Returns the value of theissuedAtrecord component.- Returns:
- the value of the
issuedAtrecord component
-
validForMs
public long validForMs()Returns the value of thevalidForMsrecord component.- Returns:
- the value of the
validForMsrecord component
-
selection
Returns the value of theselectionrecord component.- Returns:
- the value of the
selectionrecord component
-
observationIngress
public boolean observationIngress()Returns the value of theobservationIngressrecord component.- Returns:
- the value of the
observationIngressrecord component
-
socketPersistence
public boolean socketPersistence()Returns the value of thesocketPersistencerecord component.- Returns:
- the value of the
socketPersistencerecord component
-
maxBatchObservations
public int maxBatchObservations()Returns the value of themaxBatchObservationsrecord component.- Returns:
- the value of the
maxBatchObservationsrecord component
-
maxBatchBytes
public int maxBatchBytes()Returns the value of themaxBatchBytesrecord component.- Returns:
- the value of the
maxBatchBytesrecord component
-
probeJobs
Returns the value of theprobeJobsrecord component.- Returns:
- the value of the
probeJobsrecord component
-