Class CIDRGroupsMappingCache

java.lang.Object
org.apache.cassandra.auth.CIDRGroupsMappingCache

public class CIDRGroupsMappingCache extends Object
CIDR groups mapping cache. Periodically reloads the cache with the latest entries in the table AuthKeyspace.CIDR_GROUPS
  • Constructor Details

  • Method Details

    • loadCidrGroupsCache

      public void loadCidrGroupsCache()
      Builds CIDR groups cache the first time. Should be called before auth starts sending lookup IP requests
    • lookupCidrGroupsForIp

      public Set<String> lookupCidrGroupsForIp(InetAddress ipAddr)
      Lookup best matching CIDR group for the given IP
      Parameters:
      ipAddr - IP address
      Returns:
      returns set of CIDR group(s)