Record Class GeoLocationHint
java.lang.Object
java.lang.Record
ecmwf.common.ectrans.GeoLocationHint
- Record Components:
provider- the provider identifier, such asaws,gcs, orazureregion- the configured provider region or bucket locationlookupHost- an optional region-specific hostname for GeoIP fallback
A configuration-derived hint for locating a remote service geographically. The Master resolves provider regions to
approximate coordinates and may use the lookup host with its GeoIP database when the region is not recognised.
-
Constructor Summary
ConstructorsConstructorDescriptionGeoLocationHint(String provider, String region, String lookupHost) Creates an instance of aGeoLocationHintrecord class. -
Method Summary
Modifier and TypeMethodDescriptionfinal booleanIndicates whether some other object is "equal to" this one.final inthashCode()Returns a hash code value for this object.Returns the value of thelookupHostrecord component.provider()Returns the value of theproviderrecord component.region()Returns the value of theregionrecord component.final StringtoString()Returns a string representation of this record class.
-
Constructor Details
-
GeoLocationHint
Creates an instance of aGeoLocationHintrecord class.- Parameters:
provider- the value for theproviderrecord componentregion- the value for theregionrecord componentlookupHost- the value for thelookupHostrecord 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. All components in this record class are compared withObjects::equals(Object,Object). -
provider
-
region
-
lookupHost
Returns the value of thelookupHostrecord component.- Returns:
- the value of the
lookupHostrecord component
-