jgroup
Interface MembershipListener

All Superinterfaces:
Listener
All Known Implementing Classes:
MemberTable

public interface MembershipListener
extends Listener

In order to be notified of membership events like view changes, an object must implement this interface.

Since:
Jgroup 0.1
Author:
Alberto Montresor

Method Summary
 void leaved()
          Upcall that is invoked by Jgroup to acknowledge the fact that this object has left the group.
 void prepareChange()
          Upcall that is invoked by the group membership service to notify that the current view is not valid any more, and the group membership service is trying to reach an agreement on a new view.
 void viewChange(View view)
          Upcall invoked on the member when a view change occurs.
 

Method Detail

viewChange

public void viewChange(View view)
Upcall invoked on the member when a view change occurs.
Parameters:
view - the new view.
See Also:
MembershipService

prepareChange

public void prepareChange()
Upcall that is invoked by the group membership service to notify that the current view is not valid any more, and the group membership service is trying to reach an agreement on a new view. Currently not implemented.
See Also:
MembershipService

leaved

public void leaved()
Upcall that is invoked by Jgroup to acknowledge the fact that this object has left the group. This method can be invoked only after method leave has been invoked on the group membership service.
See Also:
MembershipService