public class MaxMindIpLocationResolver extends GeoIpResolver<T>
GeoIpResolver to load IP location data from DatabaseVendorType.MAXMIND.| Modifier and Type | Field and Description |
|---|---|
protected com.maxmind.geoip2.DatabaseReader |
databaseReader |
protected static org.slf4j.Logger |
LOG |
lastError, resolveTime| Constructor and Description |
|---|
MaxMindIpLocationResolver(com.codahale.metrics.Timer resolveTime,
String configPath,
boolean enabled) |
| Modifier and Type | Method and Description |
|---|---|
Optional<GeoLocationInformation> |
doGetGeoIpData(InetAddress address) |
getGeoIpData, getLastError, isEnabledprotected static final org.slf4j.Logger LOG
protected com.maxmind.geoip2.DatabaseReader databaseReader
@Inject
public MaxMindIpLocationResolver(com.codahale.metrics.Timer resolveTime,
String configPath,
boolean enabled)
public Optional<GeoLocationInformation> doGetGeoIpData(InetAddress address)
doGetGeoIpData in class GeoIpResolver<GeoLocationInformation>Copyright © 2012–2022 Graylog, Inc.. All rights reserved.