info.informatica.net
Class SQLDnsCache
java.lang.Object
info.informatica.util.ObjectCache
info.informatica.net.SQLDnsCache
public final class SQLDnsCache
- extends ObjectCache
SQL-based DNS cache
- Version:
- 1.02
- Author:
- amengual at informatica dot info
SQLDnsCache
public SQLDnsCache()
init
public void init(Properties conf)
throws CacheException
- Specified by:
init in class ObjectCache
- Throws:
CacheException
setExpireTime
public void setExpireTime(long t)
- Sets the expire time.
- Specified by:
setExpireTime in class ObjectCache
- Parameters:
t - the time in seconds.
lookupString
public String lookupString(String ip)
- Specified by:
lookupString in class ObjectCache
lookup
public DatedContainer<String> lookup(String ip)
- Specified by:
lookup in class ObjectCache
put
public void put(String ip,
String name)
- Specified by:
put in class ObjectCache
put
public void put(String ip,
DatedContainer<String> dc)
- Overrides:
put in class ObjectCache
close
public void close()
throws CacheException
- Description copied from class:
ObjectCache
- Closes this cache.
- Specified by:
close in class ObjectCache
- Throws:
CacheException - if a problem arose when attempting to close.