Class LookupService

java.lang.Object
org.torproject.metrics.descriptorparser.utils.LookupService

public class LookupService extends Object
  • Constructor Details

    • LookupService

      public LookupService(File geoipDir)
  • Method Details

    • lookup

      public SortedMap<String,LookupResult> lookup(SortedSet<String> addressStrings)
      Looks up address strings in the configured files and returns all lookup results.
    • getStatsString

      public String getStatsString()
      Returns a string with the number of addresses looked up and resolved.