[jboss-dev-forums] [Design of Clustering on JBoss (Clusters/JBoss)] - Re: Handling cluster state when network partitions occur

galder.zamarreno@jboss.com do-not-reply at jboss.com
Thu Aug 30 08:08:16 EDT 2007


(1) Re: Merget state for Pojo. Callback seems most reasonable option here. Maybe we could instruct users to implement a method that looks like:

void merge(Object o)

Where Object o is merged with by the Pojo where the method is called, User's would then merge different instance attributes and call its setters which would be intercepted. We could also say that this method would only be called in the Pojo version in the primary partition (any node in the primary partition would do cos this partition would have the same state)

If the network partition resulted in N subnetworks, merge() could get a Collection of N Pojos, one Pojo for each subnetwork Pojo.

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

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



More information about the jboss-dev-forums mailing list