[jboss-dev-forums] [Design of JBossCache] - Re: Reactivating SharedStoreCacheLoader
manik.surtani@jboss.com
do-not-reply at jboss.com
Mon Jul 17 01:13:58 EDT 2006
What about something like this -
1) New node becomes coord
2) Triggers a process in the singleton cache loader to take over ownership of the singleton cache.
3) Starts by walking the tree to get a picture of the in-memory state (by doing _get? Bad, since no locks are obtained. Perhaps by passing in a flag to bypass cache loading?)
4) Make calls to cacheLoader.put() for each node visited in the tree.
Yes, this is brute-force and slower than getting/setting state as bytes, but at least this sticks with data format contracts without having to make assumptions.
Thoughts?
View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=3958367#3958367
Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=3958367
More information about the jboss-dev-forums
mailing list