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
FieldsModifier and TypeFieldDescriptionstatic final IpLocationResolutionResolution used when the IP location service is unavailable (e.g. -
Method Summary
Modifier and TypeMethodDescriptiondatabaseInfo(String databaseFile) The database metadata for the given database file, ornullwhen the service is unavailable or the database file is not recognized.static IpLocationResolutionfromPrefetched(Map<String, IpDataLookupInfo> databaseInfo) Builds a resolution backed by an already-fetched map of database metadata keyed by database file name.booleanWhether the IP location service was available when this resolution was built.
-
Field Details
-
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. WhenfalsenoIP_LOCATIONcommand can be resolved and the rule leaves the node unresolved with a dedicated message. -
databaseInfo
The database metadata for the given database file, ornullwhen the service is unavailable or the database file is not recognized. -
fromPrefetched
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.
-