jgroup.core
Interface MembershipListener

All Known Implementing Classes:
JeriEGMILayer, MemberTable, MergingLayer, NotifyLayer, RecoveryLayer, RegistryImpl, RegistryLayer, ReplicaManagerImpl, TimestampLayer, TotalOrderLayer, UpgradeLayer

public interface MembershipListener

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

Since:
Jgroup 0.1
Author:
Alberto Montresor

Nested Class Summary
static interface MembershipListener.AllowDuplicateViews
          Annotation marker used to indicate that the viewChange() method should allow invocations in which the two consecutive views have the same set of members.
 
Method Summary
 void hasLeft()
          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 members implementing the MembershipListener interface, when a view change occurs.
 

Method Detail

viewChange

void viewChange(View view)
Upcall invoked on members implementing the MembershipListener interface, when a view change occurs.

Parameters:
view - The new view that has been installed.
See Also:
MembershipService

prepareChange

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.

See Also:
MembershipService

hasLeft

void hasLeft()
Upcall that is invoked by Jgroup to acknowledge the fact that this object has left the group. This method is only invoked after the leave method has been invoked on the group membership service.

See Also:
MembershipService


Copyright © 1998-2006 The Jgroup/ARM development team. All Rights Reserved.