|
||||||||||
PREV CLASS (src) NEXT CLASS (src) | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectorg.jboss.util.LRUCachePolicy (src)
org.jboss.ejb.plugins.LRUEnterpriseContextCachePolicy
Least Recently Used cache policy for EnterpriseContexts.
AbstractInstanceCache
(src) Nested Class Summary | |
protected class |
LRUEnterpriseContextCachePolicy.ContextLRUList (src)
Subclass that logs list activity events. |
protected class |
LRUEnterpriseContextCachePolicy.OveragerTask (src)
This TimerTask passivates cached beans that have not been called for a while. |
protected class |
LRUEnterpriseContextCachePolicy.ResizerTask (src)
This TimerTask resizes the cache capacity using the cache miss frequency algorithm, that is the more cache misses we have, the more the cache size is enlarged, and viceversa. |
Nested classes inherited from class org.jboss.util.LRUCachePolicy (src) |
LRUCachePolicy.LRUCacheEntry (src) , LRUCachePolicy.LRUList (src) |
Field Summary | |
protected static Logger (src) |
log
|
protected static java.util.Timer |
tasksTimer
|
Fields inherited from class org.jboss.util.LRUCachePolicy (src) |
m_list, m_map, m_maxCapacity, m_minCapacity |
Constructor Summary | |
LRUEnterpriseContextCachePolicy(AbstractInstanceCache (src) eic)
Creates a LRU cache policy object given the instance cache that use this policy object. |
Method Summary | |
protected void |
ageOut(LRUCachePolicy.LRUCacheEntry (src) entry)
Callback method called when the cache algorithm ages out of the cache the given entry. |
protected void |
cacheMiss()
Callback method called when a cache miss happens. |
protected LRUCachePolicy.LRUList (src) |
createList()
Factory method for the linked list used by this cache implementation. |
void |
destroy()
Destroys the cache that is now unusable. |
void |
importXml(org.w3c.dom.Element element)
Reads from the configuration the parameters for this cache policy, that are all optionals. |
void |
sample(java.lang.Object s)
Samples the status of the implementor object and register the status into the snapshot argument. |
void |
start()
Starts this cache that is now ready to be used. |
void |
stop()
Stops this cache thus LRUCachePolicy.flush() ing all cached objects. |
Methods inherited from class org.jboss.util.LRUCachePolicy (src) |
create, createCacheEntry, flush, get, insert, peek, remove, size |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Field Detail |
protected static Logger (src) log
protected static java.util.Timer tasksTimer
Constructor Detail |
public LRUEnterpriseContextCachePolicy(AbstractInstanceCache (src) eic)
Method Detail |
public void sample(java.lang.Object s)
Monitorable (src)
sample
in interface Monitorable (src)
public void start()
LRUCachePolicy (src)
start
in interface CachePolicy (src)
start
in class LRUCachePolicy (src)
LRUCachePolicy.create()
,
LRUCachePolicy.stop()
public void stop()
LRUCachePolicy (src)
LRUCachePolicy.flush()
ing all cached objects. LRUCachePolicy.start()
will restart the cache.
stop
in interface CachePolicy (src)
stop
in class LRUCachePolicy (src)
LRUCachePolicy.start()
,
LRUCachePolicy.destroy()
public void destroy()
LRUCachePolicy (src)
LRUCachePolicy.create()
ed and
re-LRUCachePolicy.start()
ed.
destroy
in interface CachePolicy (src)
destroy
in class LRUCachePolicy (src)
LRUCachePolicy.create()
public void importXml(org.w3c.dom.Element element) throws DeploymentException (src)
importXml
in interface XmlLoadable (src)
DeploymentException (src)
protected LRUCachePolicy.LRUList (src) createList()
LRUCachePolicy (src)
createList
in class LRUCachePolicy (src)
protected void ageOut(LRUCachePolicy.LRUCacheEntry (src) entry)
LRUCachePolicy (src)
ageOut
in class LRUCachePolicy (src)
protected void cacheMiss()
LRUCachePolicy (src)
cacheMiss
in class LRUCachePolicy (src)
|
||||||||||
PREV CLASS (src) NEXT CLASS (src) | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |