org.xmlecho.palomar.cache
Class Monitor

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

public abstract class Monitor
extends java.lang.Object
implements java.lang.Runnable

Abstract class for all cache controllers. No specific abstract methods but sub classes should implement the run() method.


Field Summary
protected  Cache cacheToRefresh
          specific cache to work on
protected  long nextWakeupTime
           
protected  long wakeupTime
           
 
Constructor Summary
Monitor()
           
 
Method Summary
 Cache getCache()
           
 long getNextWakeupTime()
           
 long getRefreshTime()
           
 void setCache(Cache cacheToRefresh)
          Set the cache to be refreshed
 void setNextWakeupTime(long sleepFor)
           
 void setRefreshTime(long wakeupTime)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 
Methods inherited from interface java.lang.Runnable
run
 

Field Detail

cacheToRefresh

protected Cache cacheToRefresh
specific cache to work on


wakeupTime

protected long wakeupTime

nextWakeupTime

protected long nextWakeupTime
Constructor Detail

Monitor

public Monitor()
Method Detail

setCache

public void setCache(Cache cacheToRefresh)
Set the cache to be refreshed


getCache

public Cache getCache()

setRefreshTime

public void setRefreshTime(long wakeupTime)

getRefreshTime

public long getRefreshTime()

setNextWakeupTime

public void setNextWakeupTime(long sleepFor)

getNextWakeupTime

public long getNextWakeupTime()