org.xmlecho.palomar.cache
Class CacheMasterMonitor

java.lang.Object
  extended byorg.xmlecho.palomar.cache.Monitor
      extended byorg.xmlecho.palomar.cache.CacheMasterMonitor
All Implemented Interfaces:
java.lang.Runnable

public class CacheMasterMonitor
extends Monitor

Class for controlling the cache objects. Periodically wakes up at every set time and refreshes the cache


Field Summary
 
Fields inherited from class org.xmlecho.palomar.cache.Monitor
cacheToRefresh, nextWakeupTime, wakeupTime
 
Constructor Summary
CacheMasterMonitor(long defaultRefreshTime)
          Constructor sets the time to wakeup
 
Method Summary
 java.util.Hashtable getCacheList()
           
 void run()
          WorkHorse for monitoring.
 void setCacheList(java.util.Hashtable cacheList)
          sets the caches list
 
Methods inherited from class org.xmlecho.palomar.cache.Monitor
getCache, getNextWakeupTime, getRefreshTime, setCache, setNextWakeupTime, setRefreshTime
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

CacheMasterMonitor

public CacheMasterMonitor(long defaultRefreshTime)
Constructor sets the time to wakeup

Parameters:
defaultRefreshTime - time to refresh the caches
Method Detail

setCacheList

public void setCacheList(java.util.Hashtable cacheList)
sets the caches list

Parameters:
cacheList - list of caches to be monitored

getCacheList

public java.util.Hashtable getCacheList()

run

public void run()
WorkHorse for monitoring.