Package org.apache.cassandra.auth
Class CIDRGroupsMappingCache
java.lang.Object
org.apache.cassandra.auth.CIDRGroupsMappingCache
CIDR groups mapping cache. Periodically reloads the cache with the latest entries
in the table
AuthKeyspace.CIDR_GROUPS-
Constructor Summary
ConstructorsConstructorDescriptionCIDRGroupsMappingCache(CIDRGroupsMappingManager cidrGroupsMappingManager, CIDRAuthorizerMetrics cidrAuthorizerMetrics) -
Method Summary
Modifier and TypeMethodDescriptionvoidBuilds CIDR groups cache the first time.lookupCidrGroupsForIp(InetAddress ipAddr) Lookup best matching CIDR group for the given IP
-
Constructor Details
-
CIDRGroupsMappingCache
public CIDRGroupsMappingCache(CIDRGroupsMappingManager cidrGroupsMappingManager, CIDRAuthorizerMetrics cidrAuthorizerMetrics)
-
-
Method Details
-
loadCidrGroupsCache
public void loadCidrGroupsCache()Builds CIDR groups cache the first time. Should be called before auth starts sending lookup IP requests -
lookupCidrGroupsForIp
Lookup best matching CIDR group for the given IP- Parameters:
ipAddr- IP address- Returns:
- returns set of CIDR group(s)
-