2 Replies Latest reply on May 27, 2009 3:14 AM by clajoie

    Merging View content after splits

    clajoie

      I'd like to more gracefully handle group splits. Here's what I've gotten to so far.

      Cache objects can have CacheListeners registered. I can create a listener and annotate it so that it picks up ViewChangedEvents. In an Event I can see if the View is a MergeView.

      From here the plan was to determine a primary partition by simply picking the view with the largest number of members. Then request the state from the other partitions and merge that state in to the primary partition. Finally, force the other members to leave the group and rejoin, thus syncing up their state with the primary partition.

      However, I can't find a way to gain access to the state of the other members. Can some one point me to what I'm missing here?

      Thanks