Record Class HostMapData
java.lang.Object
java.lang.Record
ecmwf.common.database.HostMapData
- All Implemented Interfaces:
Serializable
public record HostMapData(String id, String nickname, String hostname, String type, boolean active, double lat, double lon, String geo, String network, String method, String comment)
extends Record
implements Serializable
Immutable data record carrying per-host map data across the RMI boundary. Lat/lon are resolved (GeoIP or manual DB
entry) before transport.
- See Also:
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionbooleanactive()Returns the value of theactiverecord component.comment()Returns the value of thecommentrecord component.final booleanIndicates whether some other object is "equal to" this one.geo()Returns the value of thegeorecord component.final inthashCode()Returns a hash code value for this object.hostname()Returns the value of thehostnamerecord component.id()Returns the value of theidrecord component.doublelat()Returns the value of thelatrecord component.doublelon()Returns the value of thelonrecord component.method()Returns the value of themethodrecord component.network()Returns the value of thenetworkrecord component.nickname()Returns the value of thenicknamerecord component.final StringtoString()Returns a string representation of this record class.type()Returns the value of thetyperecord component.
-
Constructor Details
-
HostMapData
public HostMapData(String id, String nickname, String hostname, String type, boolean active, double lat, double lon, String geo, String network, String method, String comment) Creates an instance of aHostMapDatarecord class.- Parameters:
id- the value for theidrecord componentnickname- the value for thenicknamerecord componenthostname- the value for thehostnamerecord componenttype- the value for thetyperecord componentactive- the value for theactiverecord componentlat- the value for thelatrecord componentlon- the value for thelonrecord componentgeo- the value for thegeorecord componentnetwork- the value for thenetworkrecord componentmethod- the value for themethodrecord componentcomment- the value for thecommentrecord component
-
-
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. -
id
Returns the value of theidrecord component.- Returns:
- the value of the
idrecord component
-
nickname
Returns the value of thenicknamerecord component.- Returns:
- the value of the
nicknamerecord component
-
hostname
Returns the value of thehostnamerecord component.- Returns:
- the value of the
hostnamerecord component
-
type
Returns the value of thetyperecord component.- Returns:
- the value of the
typerecord component
-
active
public boolean active()Returns the value of theactiverecord component.- Returns:
- the value of the
activerecord component
-
lat
public double lat()Returns the value of thelatrecord component.- Returns:
- the value of the
latrecord component
-
lon
public double lon()Returns the value of thelonrecord component.- Returns:
- the value of the
lonrecord component
-
geo
Returns the value of thegeorecord component.- Returns:
- the value of the
georecord component
-
network
Returns the value of thenetworkrecord component.- Returns:
- the value of the
networkrecord component
-
method
Returns the value of themethodrecord component.- Returns:
- the value of the
methodrecord component
-
comment
Returns the value of thecommentrecord component.- Returns:
- the value of the
commentrecord component
-