Record Class GeoPoint
java.lang.Object
java.lang.Record
ecmwf.ecpds.master.GeoPoint
- Record Components:
latitude- the latitudelongitude- the longitudecountry- the ISO country code, ornullif unknown
- All Implemented Interfaces:
Serializable
public record GeoPoint(double latitude, double longitude, String country)
extends Record
implements Serializable
A resolved GeoIP location, sent from the MasterServer (the only JVM holding the GeoIP2 database, see
ManagementInterface.getGeoLocations(String[])) to the Monitor plugin's "Live ECPDS Earth" globe
visualisation. Carries the ISO country code alongside the coordinates so the frontend can aggregate/group transfers
by destination country (e.g. once there are too many individual Hosts to usefully show one arc each).- See Also:
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptioncountry()Returns the value of thecountryrecord component.final booleanIndicates whether some other object is "equal to" this one.final inthashCode()Returns a hash code value for this object.doublelatitude()Returns the value of thelatituderecord component.doubleReturns the value of thelongituderecord component.final StringtoString()Returns a string representation of this record class.
-
Constructor Details
-
GeoPoint
-
-
Method Details
-
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. -
latitude
-
longitude
-
country
-