org.jgroups.protocols
Class CoordGmsImpl

java.lang.Object
  extended byorg.jgroups.protocols.GmsImpl
      extended byorg.jgroups.protocols.CoordGmsImpl

public class CoordGmsImpl
extends GmsImpl


Field Summary
 
Fields inherited from class org.jgroups.protocols.GmsImpl
gms
 
Constructor Summary
CoordGmsImpl(GMS g)
           
 
Method Summary
 boolean handleJoin(Address mbr)
           
 void handleLeave(Address mbr, boolean suspected)
          Exclude mbr from the membership.
 View handleMerge(ViewId other_vid, java.util.Vector other_mbrs)
          Invoked by another coordinator that asks to merge its view with mine.
 void handleSuspect(Address mbr)
           
 void handleViewChange(ViewId new_view, java.util.Vector mbrs)
           
 void init()
           
 void join(Address mbr)
           
 void leave(Address mbr)
          The coordinator itself wants to leave the group
 void merge(java.util.Vector other_coords)
          Invoked upon receiving a MERGE event from the MERGE layer.
 void suspect(Address mbr)
           
 
Methods inherited from class org.jgroups.protocols.GmsImpl
handleDownEvent, handleUpEvent, iWouldBeCoordinator, wrongMethod
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

CoordGmsImpl

public CoordGmsImpl(GMS g)
Method Detail

init

public void init()
Specified by:
init in class GmsImpl

join

public void join(Address mbr)
Specified by:
join in class GmsImpl

leave

public void leave(Address mbr)
The coordinator itself wants to leave the group

Specified by:
leave in class GmsImpl

suspect

public void suspect(Address mbr)
Specified by:
suspect in class GmsImpl

merge

public void merge(java.util.Vector other_coords)
Invoked upon receiving a MERGE event from the MERGE layer. We have found a partition and should merge with them, then I will become a Participant.

Specified by:
merge in class GmsImpl
Parameters:
other_coords - A list of other coordinators found. In the current implementation the list only has a single element

handleJoin

public boolean handleJoin(Address mbr)
Specified by:
handleJoin in class GmsImpl

handleLeave

public void handleLeave(Address mbr,
                        boolean suspected)
Exclude mbr from the membership. If suspected is true, then this member crashed and therefore is forced to leave, otherwise it is leaving voluntarily.

Specified by:
handleLeave in class GmsImpl

handleViewChange

public void handleViewChange(ViewId new_view,
                             java.util.Vector mbrs)
Specified by:
handleViewChange in class GmsImpl

handleMerge

public View handleMerge(ViewId other_vid,
                        java.util.Vector other_mbrs)
Invoked by another coordinator that asks to merge its view with mine. I 'll be the new coordinator. We should flush our view, install a new view with all the members and return the new view that will be installed by the other coordinator before becoming a participant.

Specified by:
handleMerge in class GmsImpl

handleSuspect

public void handleSuspect(Address mbr)
Specified by:
handleSuspect in class GmsImpl


Copyright © 2001,2002 www.jgroups.com . All Rights Reserved.