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:
-
Nested Class Summary
Nested ClassesModifier and TypeClassDescriptionstatic enumstatic final recordstatic enumstatic enumstatic final record -
Field Summary
FieldsModifier and TypeFieldDescriptionstatic final intstatic final intstatic final int -
Constructor Summary
ConstructorsConstructorDescriptionWeatherObservation(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 aWeatherObservationrecord class. -
Method Summary
Modifier and TypeMethodDescriptioncategory()Returns the value of thecategoryrecord component.Returns the value of theconfiguredTargetrecord component.Returns the value of theconnectionsrecord component.Returns the value of thedestinationIdrecord component.final booleanIndicates whether some other object is "equal to" this one.eventId()Returns the value of theeventIdrecord component.Returns the value of theexecutionIdrecord component.final inthashCode()Returns a hash code value for this object.hostId()Returns the value of thehostIdrecord component.kind()Returns the value of thekindrecord component.leg()Returns the value of thelegrecord component.longReturns the value of theoccurredAtrecord component.outcome()Returns the value of theoutcomerecord component.path()protocol()Returns the value of theprotocolrecord component.intReturns the value of theschemaVersionrecord component.longReturns the value of theselectionRevisionrecord component.Returns the value of thesourceEpochrecord component.sourceId()Returns the value of thesourceIdrecord component.final StringtoString()Returns a string representation of this record class.longReturns the value of thetransferIdrecord component.
-
Field Details
-
SCHEMA_VERSION
public static final int SCHEMA_VERSION- See Also:
-
MAX_CONNECTIONS
public static final int MAX_CONNECTIONS- See Also:
-
MAX_ENCODED_BYTES
public static final int MAX_ENCODED_BYTES- See Also:
-
-
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 aWeatherObservationrecord class.- Parameters:
schemaVersion- the value for theschemaVersionrecord componenteventId- the value for theeventIdrecord componentexecutionId- the value for theexecutionIdrecord componentsourceEpoch- the value for thesourceEpochrecord componentsourceId- the value for thesourceIdrecord componenttransferId- the value for thetransferIdrecord componentdestinationId- the value for thedestinationIdrecord componenthostId- the value for thehostIdrecord componentconfiguredTarget- the value for theconfiguredTargetrecord componentprotocol- the value for theprotocolrecord componentleg- the value for thelegrecord componentselectionRevision- the value for theselectionRevisionrecord componentkind- the value for thekindrecord componentoutcome- the value for theoutcomerecord componentcategory- the value for thecategoryrecord componentoccurredAt- the value for theoccurredAtrecord componentconnections- the value for theconnectionsrecord component
-
-
Method Details
-
path
-
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
-
eventId
Returns the value of theeventIdrecord component.- Returns:
- the value of the
eventIdrecord component
-
executionId
Returns the value of theexecutionIdrecord component.- Returns:
- the value of the
executionIdrecord 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
-
transferId
public long transferId()Returns the value of thetransferIdrecord component.- Returns:
- the value of the
transferIdrecord component
-
destinationId
Returns the value of thedestinationIdrecord component.- Returns:
- the value of the
destinationIdrecord component
-
hostId
Returns the value of thehostIdrecord component.- Returns:
- the value of the
hostIdrecord component
-
configuredTarget
Returns the value of theconfiguredTargetrecord component.- Returns:
- the value of the
configuredTargetrecord component
-
protocol
Returns the value of theprotocolrecord component.- Returns:
- the value of the
protocolrecord component
-
leg
Returns the value of thelegrecord component.- Returns:
- the value of the
legrecord component
-
selectionRevision
public long selectionRevision()Returns the value of theselectionRevisionrecord component.- Returns:
- the value of the
selectionRevisionrecord component
-
kind
Returns the value of thekindrecord component.- Returns:
- the value of the
kindrecord component
-
outcome
Returns the value of theoutcomerecord component.- Returns:
- the value of the
outcomerecord component
-
category
Returns the value of thecategoryrecord component.- Returns:
- the value of the
categoryrecord component
-
occurredAt
public long occurredAt()Returns the value of theoccurredAtrecord component.- Returns:
- the value of the
occurredAtrecord component
-
connections
Returns the value of theconnectionsrecord component.- Returns:
- the value of the
connectionsrecord component
-