|
||||||||||
| PREV CLASS (src) NEXT CLASS (src) | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectorg.jboss.cache.eviction.BaseEvictionPolicy (src)
org.jboss.cache.eviction.LRUPolicy
Provider to provide eviction policy. This one is based on LRU algorithm that a user can specify either maximum number of nodes or the idle time of a node to be evicted.
| Field Summary | |
protected Logger (src) |
log_
|
| Fields inherited from class org.jboss.cache.eviction.BaseEvictionPolicy (src) |
cache_, regionManager_ |
| Constructor Summary | |
LRUPolicy()
|
|
| Method Summary | |
void |
cacheStarted(TreeCache (src) cache)
Called when the cache is started. |
void |
cacheStopped(TreeCache (src) cache)
Called when the cache is stopped. |
void |
configure(TreeCache (src) cache)
Method called to configure this implementation. |
protected EvictionAlgorithm (src) |
getEvictionAlgorithm()
|
int |
getWakeupIntervalSeconds()
return eviction thread (if any) wake up interval in seconds. |
void |
nodeAdded(Fqn (src) fqn)
--- Implementation of TreeCacheListener interface --- |
void |
nodeCreated(Fqn (src) fqn)
Called when a node is created |
void |
nodeEvicted(Fqn (src) fqn)
Called when a node is evicted (not the same as remove()). |
void |
nodeLoaded(Fqn (src) fqn)
Called when a node is loaded into memory via the CacheLoader. |
void |
nodeModified(Fqn (src) fqn)
Called when a node is modified, e.g., one (key, value) pair in the internal map storage has been modified. |
void |
nodeRemoved(Fqn (src) fqn)
Note that this removes all children nodes as well. |
void |
nodeVisited(Fqn (src) fqn)
Called when a node is visisted, i.e., get(). |
void |
viewChange(View new_view)
|
| Methods inherited from class org.jboss.cache.eviction.BaseEvictionPolicy (src) |
evict, getCacheData, getChildrenNames, getRegions, hasChild |
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Field Detail |
protected Logger (src) log_
| Constructor Detail |
public LRUPolicy()
| Method Detail |
public void nodeAdded(Fqn (src) fqn)
public void nodeRemoved(Fqn (src) fqn)
nodeRemoved in interface TreeCacheListener (src) fqn - public void nodeEvicted(Fqn (src) fqn)
TreeCacheListener (src)
nodeEvicted in interface TreeCacheListener (src) fqn - public void nodeModified(Fqn (src) fqn)
TreeCacheListener (src)
nodeModified in interface TreeCacheListener (src) fqn - public void nodeLoaded(Fqn (src) fqn)
TreeCacheListener (src) TreeCacheListener.nodeCreated(Fqn).
nodeLoaded in interface TreeCacheListener (src) public void nodeCreated(Fqn (src) fqn)
TreeCacheListener (src)
nodeCreated in interface TreeCacheListener (src) fqn - public void nodeVisited(Fqn (src) fqn)
TreeCacheListener (src)
nodeVisited in interface TreeCacheListener (src) fqn - public void cacheStarted(TreeCache (src) cache)
TreeCacheListener (src)
cacheStarted in interface TreeCacheListener (src) cache - protected EvictionAlgorithm (src) getEvictionAlgorithm()
public void cacheStopped(TreeCache (src) cache)
TreeCacheListener (src)
cacheStopped in interface TreeCacheListener (src) cache - public void viewChange(View new_view)
viewChange in interface TreeCacheListener (src) public int getWakeupIntervalSeconds()
EvictionPolicy (src)
getWakeupIntervalSeconds in interface EvictionPolicy (src) getWakeupIntervalSeconds in class BaseEvictionPolicy (src) public void configure(TreeCache (src) cache)
EvictionPolicy (src)
configure in interface EvictionPolicy (src) configure in class BaseEvictionPolicy (src)
|
||||||||||
| PREV CLASS (src) NEXT CLASS (src) | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||