Class IPLookupService

java.lang.Object
org.apache.nifi.components.AbstractConfigurableComponent
org.apache.nifi.controller.AbstractControllerService
org.apache.nifi.lookup.maxmind.IPLookupService
All Implemented Interfaces:
org.apache.nifi.components.ConfigurableComponent, org.apache.nifi.controller.ControllerService, LookupService<Record>, RecordLookupService

@Tags({"lookup","enrich","ip","geo","ipgeo","maxmind","isp","domain","cellular","anonymous","tor"}) @CapabilityDescription("A lookup service that provides several types of enrichment information for IP addresses. The service is configured by providing a MaxMind Database file and specifying which types of enrichment should be provided for an IP Address or Hostname. Each type of enrichment is a separate lookup, so configuring the service to provide all of the available enrichment data may be slower than returning only a portion of the available enrichments. In order to use this service, a lookup must be performed using key of \'ip\' and a value that is a valid IP address or hostname. View the Usage of this component and choose to view Additional Details for more information, such as the Schema that pertains to the information that is returned.") public class IPLookupService extends org.apache.nifi.controller.AbstractControllerService implements RecordLookupService
  • Field Details

    • databaseFile

      private volatile String databaseFile
    • IP_KEY

      static final String IP_KEY
      See Also:
    • REQUIRED_KEYS

      private static final Set<String> REQUIRED_KEYS
    • databaseReader

      private volatile com.maxmind.geoip2.DatabaseReader databaseReader
    • databaseChecksum

      private volatile String databaseChecksum
    • databaseLastRefreshAttempt

      private volatile long databaseLastRefreshAttempt
    • dbWriteLock

      private final Lock dbWriteLock
    • REFRESH_THRESHOLD_MS

      static final long REFRESH_THRESHOLD_MS
      See Also:
    • GEO_DATABASE_FILE

      static final org.apache.nifi.components.PropertyDescriptor GEO_DATABASE_FILE
    • LOOKUP_CITY

      static final org.apache.nifi.components.PropertyDescriptor LOOKUP_CITY
    • LOOKUP_ISP

      static final org.apache.nifi.components.PropertyDescriptor LOOKUP_ISP
    • LOOKUP_DOMAIN

      static final org.apache.nifi.components.PropertyDescriptor LOOKUP_DOMAIN
    • LOOKUP_CONNECTION_TYPE

      static final org.apache.nifi.components.PropertyDescriptor LOOKUP_CONNECTION_TYPE
    • LOOKUP_ANONYMOUS_IP_INFO

      static final org.apache.nifi.components.PropertyDescriptor LOOKUP_ANONYMOUS_IP_INFO
    • PROPERTY_DESCRIPTORS

      private static final List<org.apache.nifi.components.PropertyDescriptor> PROPERTY_DESCRIPTORS
  • Constructor Details

    • IPLookupService

      public IPLookupService()
  • Method Details