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
    Constructor
    Description
    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 a HostMapData record class.
  • Method Summary

    Modifier and Type
    Method
    Description
    boolean
    Returns the value of the active record component.
    Returns the value of the comment record component.
    final boolean
    Indicates whether some other object is "equal to" this one.
    geo()
    Returns the value of the geo record component.
    final int
    Returns a hash code value for this object.
    Returns the value of the hostname record component.
    id()
    Returns the value of the id record component.
    double
    lat()
    Returns the value of the lat record component.
    double
    lon()
    Returns the value of the lon record component.
    Returns the value of the method record component.
    Returns the value of the network record component.
    Returns the value of the nickname record component.
    final String
    Returns a string representation of this record class.
    Returns the value of the type record component.

    Methods inherited from class Object

    clone, finalize, getClass, notify, notifyAll, wait, wait, wait
  • 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 a HostMapData record class.
      Parameters:
      id - the value for the id record component
      nickname - the value for the nickname record component
      hostname - the value for the hostname record component
      type - the value for the type record component
      active - the value for the active record component
      lat - the value for the lat record component
      lon - the value for the lon record component
      geo - the value for the geo record component
      network - the value for the network record component
      method - the value for the method record component
      comment - the value for the comment record component
  • Method Details

    • toString

      public final String toString()
      Returns a string representation of this record class. The representation contains the name of the class, followed by the name and value of each of the record components.
      Specified by:
      toString in class Record
      Returns:
      a string representation of this object
    • hashCode

      public final int hashCode()
      Returns a hash code value for this object. The value is derived from the hash code of each of the record components.
      Specified by:
      hashCode in class Record
      Returns:
      a hash code value for this object
    • equals

      public final boolean equals(Object o)
      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 with Objects::equals(Object,Object); primitive components are compared with the compare method from their corresponding wrapper classes.
      Specified by:
      equals in class Record
      Parameters:
      o - the object with which to compare
      Returns:
      true if this object is the same as the o argument; false otherwise.
    • id

      public String id()
      Returns the value of the id record component.
      Returns:
      the value of the id record component
    • nickname

      public String nickname()
      Returns the value of the nickname record component.
      Returns:
      the value of the nickname record component
    • hostname

      public String hostname()
      Returns the value of the hostname record component.
      Returns:
      the value of the hostname record component
    • type

      public String type()
      Returns the value of the type record component.
      Returns:
      the value of the type record component
    • active

      public boolean active()
      Returns the value of the active record component.
      Returns:
      the value of the active record component
    • lat

      public double lat()
      Returns the value of the lat record component.
      Returns:
      the value of the lat record component
    • lon

      public double lon()
      Returns the value of the lon record component.
      Returns:
      the value of the lon record component
    • geo

      public String geo()
      Returns the value of the geo record component.
      Returns:
      the value of the geo record component
    • network

      public String network()
      Returns the value of the network record component.
      Returns:
      the value of the network record component
    • method

      public String method()
      Returns the value of the method record component.
      Returns:
      the value of the method record component
    • comment

      public String comment()
      Returns the value of the comment record component.
      Returns:
      the value of the comment record component