private class Authenticator.IpListCache extends GeneratingCache
Cache.ListEntry, Cache.NullIterator
Modifier and Type | Field and Description |
---|---|
private boolean |
dependencyChecking |
Constructor and Description |
---|
IpListCache(int maxEntries,
int maxTime,
boolean dependencyChecking)
Constructor - initializes the cache
|
Modifier and Type | Method and Description |
---|---|
IpList |
find(String path)
Locate the IP list for the given path.
|
protected Object |
generate(Object key)
Load an IP list from the filesystem.
|
protected void |
logAction(String action,
Object key,
Object value)
Prints out useful debugging info
|
addDependency, find
cleanup, clear, dependenciesValid, getDependencies, has, lastSet, remove, size
public IpListCache(int maxEntries, int maxTime, boolean dependencyChecking)
public IpList find(String path) throws Exception
path
- The full filesystem path of the IP list to
load.Exception
- If not found or invalid formatprotected Object generate(Object key) throws Exception
generate
in class GeneratingCache
key
- Full path of the file to loadException
- If not found or bad format.