org.jboss.ha.framework.interfaces
Interface HAPartition.HAMembershipListener
- All Known Subinterfaces:
- HAPartition.AsynchHAMembershipExtendedListener, HAPartition.AsynchHAMembershipListener, HAPartition.HAMembershipExtendedListener
- Enclosing interface:
- HAPartition
public static interface HAPartition.HAMembershipListener
When a new node joins the cluster or an existing node leaves the cluster
(or simply dies), membership events are raised.
membershipChanged
void membershipChanged(Vector deadMembers,
Vector newMembers,
Vector allMembers)
- Called when a new partition topology occurs. This callback is made
using the JG protocol handler thread and so you cannot execute new
cluster calls that need this thread. If you need to do that implement
the asynchronous version of the listener interface.
- Parameters:
deadMembers
- A list of nodes that have died since the previous viewnewMembers
- A list of nodes that have joined the partition since the previous viewallMembers
- A list of nodes that built the current view
Copyright © 2009 JBoss, a division of Red Hat, Inc.. All Rights Reserved.