Interface IpLocationResolution


public interface IpLocationResolution
Carries the IP database metadata the ResolveIpLocation analyzer rule needs to resolve the output columns of IP_LOCATION commands.
  • Field Summary

    Fields
    Modifier and Type
    Field
    Description
    Resolution used when the IP location service is unavailable (e.g.
  • Method Summary

    Modifier and Type
    Method
    Description
    databaseInfo(String databaseFile)
    The database metadata for the given database file, or null when the service is unavailable or the database file is not recognized.
    Builds a resolution backed by an already-fetched map of database metadata keyed by database file name.
    boolean
    Whether the IP location service was available when this resolution was built.
  • Field Details

    • SERVICE_UNAVAILABLE

      static final IpLocationResolution SERVICE_UNAVAILABLE
      Resolution used when the IP location service is unavailable (e.g. minimal or test contexts that do not wire the service).
  • Method Details

    • serviceAvailable

      boolean serviceAvailable()
      Whether the IP location service was available when this resolution was built. When false no IP_LOCATION command can be resolved and the rule leaves the node unresolved with a dedicated message.
    • databaseInfo

      @Nullable IpDataLookupInfo databaseInfo(String databaseFile)
      The database metadata for the given database file, or null when the service is unavailable or the database file is not recognized.
    • fromPrefetched

      static IpLocationResolution fromPrefetched(Map<String,IpDataLookupInfo> databaseInfo)
      Builds a resolution backed by an already-fetched map of database metadata keyed by database file name. A missing key means the corresponding database file is not recognized.