[jboss-dev-forums] [Design of JBossCache] - Tracking whether nodes are in-memory vs persisted

bstansberry@jboss.com do-not-reply at jboss.com
Wed Aug 15 17:50:24 EDT 2007


In 2.0 I don't see any way to determine whether exists in memory vs is passivated.  In 1.x you can deduce this kind of thing by calling getChildrenNames() on the parent and then invoking exists() on the children. There's no equivalent API in 2.0.

This is a problem with session passivation, where the session manager is controlling evictions.  It needs to know how many sessions are in memory so it can decide whether to passivate sessions or allow creation of new ones.  I can track cache changes easily enough after the manager starts, but I have no way to readily determine the initial state of things when a new node joins an already running cluster.

Any ideas?

View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=4074598#4074598

Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=4074598



More information about the jboss-dev-forums mailing list