org.xmlecho.palomar.cache
Class CacheProxy

java.lang.Object
  extended byorg.xmlecho.palomar.cache.CacheProxy

public class CacheProxy
extends java.lang.Object

Proxy class for managing Palomar objects cache. All cache requests should go through this proxy object.

See Also:
Cache, Policy, Holder

Field Summary
protected  int cachesDefMaxsize
           
protected  long cachesDefRefreshFreq
           
protected  org.apache.log4j.Logger logger
           
 
Method Summary
 java.util.Hashtable getAllCacheDetails()
           
 Cache getCache(java.lang.String cacheName)
          Returns the indicated Cache.
 java.util.Hashtable getCacheDetails(java.util.Vector cacheList)
           
static CacheProxy getInstance()
          return the singleton instance
protected  void notifyPartners(java.lang.String cacheName, java.lang.String objectKey)
          notify clustered servers that an object has been invalidated in a named cache
 void printCache()
          Convenience method for printing the cache.
 void refresh()
          Refresh the entire fdx cache area.
 void refresh(java.util.Vector cacheList)
          Refresh one or more caches.
protected  boolean shouldNotify(java.lang.String cacheName)
          notify clustered servers that an object has been invalidated in a named cache
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

cachesDefRefreshFreq

protected long cachesDefRefreshFreq

cachesDefMaxsize

protected int cachesDefMaxsize

logger

protected org.apache.log4j.Logger logger
Method Detail

getInstance

public static CacheProxy getInstance()
return the singleton instance


getCache

public Cache getCache(java.lang.String cacheName)
Returns the indicated Cache.

Returns:
the named cache, or null if none exists with the given name.

notifyPartners

protected void notifyPartners(java.lang.String cacheName,
                              java.lang.String objectKey)
notify clustered servers that an object has been invalidated in a named cache


shouldNotify

protected boolean shouldNotify(java.lang.String cacheName)
notify clustered servers that an object has been invalidated in a named cache


refresh

public void refresh(java.util.Vector cacheList)
Refresh one or more caches.

Parameters:
cacheList - list of caches to be cleaned

refresh

public void refresh()
Refresh the entire fdx cache area.


getAllCacheDetails

public java.util.Hashtable getAllCacheDetails()

getCacheDetails

public java.util.Hashtable getCacheDetails(java.util.Vector cacheList)

printCache

public void printCache()
Convenience method for printing the cache. Prints all the overloaded toString() methods.