org.jgroups.protocols

Class CoordGmsImpl

public class CoordGmsImpl extends GmsImpl

Constructor Summary
CoordGmsImpl(GMS g)
Method Summary
booleanhandleJoin(Address mbr)
voidhandleLeave(Address mbr, boolean suspected)
Exclude mbr from the membership.
ViewhandleMerge(ViewId other_vid, Vector other_mbrs)
Invoked by another coordinator that asks to merge its view with mine.
voidhandleSuspect(Address mbr)
voidhandleViewChange(ViewId new_view, Vector mbrs)
voidinit()
voidjoin(Address mbr)
voidleave(Address mbr)
The coordinator itself wants to leave the group
voidmerge(Vector other_coords)
Invoked upon receiving a MERGE event from the MERGE layer.
voidsuspect(Address mbr)

Constructor Detail

CoordGmsImpl

public CoordGmsImpl(GMS g)

Method Detail

handleJoin

public boolean handleJoin(Address mbr)

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.

handleMerge

public View handleMerge(ViewId other_vid, 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.

handleSuspect

public void handleSuspect(Address mbr)

handleViewChange

public void handleViewChange(ViewId new_view, Vector mbrs)

init

public void init()

join

public void join(Address mbr)

leave

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

merge

public void merge(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.

Parameters: other_coords A list of other coordinators found. In the current implementation the list only has a single element

suspect

public void suspect(Address mbr)
Copyright ? 1998-2005 Bela Ban. All Rights Reserved.