Record Class WeatherCollector.Summary
java.lang.Object
java.lang.Record
ecmwf.ecpds.master.weather.WeatherCollector.Summary
- All Implemented Interfaces:
Serializable
- Enclosing class:
WeatherCollector
public static record WeatherCollector.Summary(WeatherObservation.Path path, long successes, long failures, long cancellations, long unknown, long sendingsWithSockets, long connections, long dispatchDiagnostics)
extends Record
implements Serializable
- See Also:
-
Constructor Summary
ConstructorsConstructorDescriptionSummary(WeatherObservation.Path path, long successes, long failures, long cancellations, long unknown, long sendingsWithSockets, long connections, long dispatchDiagnostics) Creates an instance of aSummaryrecord class. -
Method Summary
Modifier and TypeMethodDescriptionlongReturns the value of thecancellationsrecord component.longReturns the value of theconnectionsrecord component.longReturns the value of thedispatchDiagnosticsrecord component.final booleanIndicates whether some other object is "equal to" this one.longfailures()Returns the value of thefailuresrecord component.final inthashCode()Returns a hash code value for this object.path()Returns the value of thepathrecord component.longReturns the value of thesendingsWithSocketsrecord component.longReturns the value of thesuccessesrecord component.final StringtoString()Returns a string representation of this record class.longunknown()Returns the value of theunknownrecord component.
-
Constructor Details
-
Summary
public Summary(WeatherObservation.Path path, long successes, long failures, long cancellations, long unknown, long sendingsWithSockets, long connections, long dispatchDiagnostics) Creates an instance of aSummaryrecord class.- Parameters:
path- the value for thepathrecord componentsuccesses- the value for thesuccessesrecord componentfailures- the value for thefailuresrecord componentcancellations- the value for thecancellationsrecord componentunknown- the value for theunknownrecord componentsendingsWithSockets- the value for thesendingsWithSocketsrecord componentconnections- the value for theconnectionsrecord componentdispatchDiagnostics- the value for thedispatchDiagnosticsrecord component
-
-
Method Details
-
successFraction
-
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. -
path
Returns the value of thepathrecord component.- Returns:
- the value of the
pathrecord component
-
successes
public long successes()Returns the value of thesuccessesrecord component.- Returns:
- the value of the
successesrecord component
-
failures
public long failures()Returns the value of thefailuresrecord component.- Returns:
- the value of the
failuresrecord component
-
cancellations
public long cancellations()Returns the value of thecancellationsrecord component.- Returns:
- the value of the
cancellationsrecord component
-
unknown
public long unknown()Returns the value of theunknownrecord component.- Returns:
- the value of the
unknownrecord component
-
sendingsWithSockets
public long sendingsWithSockets()Returns the value of thesendingsWithSocketsrecord component.- Returns:
- the value of the
sendingsWithSocketsrecord component
-
connections
public long connections()Returns the value of theconnectionsrecord component.- Returns:
- the value of the
connectionsrecord component
-
dispatchDiagnostics
public long dispatchDiagnostics()Returns the value of thedispatchDiagnosticsrecord component.- Returns:
- the value of the
dispatchDiagnosticsrecord component
-