info.informatica.util
Class ObjectCache

java.lang.Object
  extended by info.informatica.util.ObjectCache
Direct Known Subclasses:
PropertyDNSCache, SQLDnsCache

public abstract class ObjectCache
extends Object

Abstract class for Object caches

Version:
1.02
Author:
amengual at informatica dot info

Constructor Summary
ObjectCache()
           
 
Method Summary
abstract  void close()
          Closes this cache.
abstract  void init(Properties p)
           
abstract  DatedContainer lookup(String ip)
           
abstract  String lookupString(String ip)
           
 void put(String ip, DatedContainer<String> dc)
           
abstract  void put(String ip, String name)
           
abstract  void setExpireTime(long t)
          Sets the cache entry expire time.
 
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

ObjectCache

public ObjectCache()
Method Detail

init

public abstract void init(Properties p)
                   throws CacheException
Throws:
CacheException

lookupString

public abstract String lookupString(String ip)

lookup

public abstract DatedContainer lookup(String ip)

put

public abstract void put(String ip,
                         String name)

put

public void put(String ip,
                DatedContainer<String> dc)

setExpireTime

public abstract void setExpireTime(long t)
Sets the cache entry expire time.

Parameters:
t - the time in seconds.

close

public abstract void close()
                    throws CacheException
Closes this cache.

Throws:
CacheException - if a problem arose when attempting to close.