org.jgroups.protocols

Class CoordGmsImpl


public class CoordGmsImpl
extends GmsImpl

Field Summary

Fields inherited from class org.jgroups.protocols.GmsImpl

gms, log

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, Vector other_mbrs)
Invoked by another coordinator that asks to merge its view with mine.
void
handleSuspect(Address mbr)
void
handleViewChange(ViewId new_view, Vector mbrs)
void
init()
void
join(Address mbr)
void
leave(Address mbr)
The coordinator itself wants to leave the group
void
merge(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, handleJoin, handleLeave, handleMerge, handleSuspect, handleUpEvent, handleViewChange, iWouldBeCoordinator, init, join, leave, merge, suspect, wrongMethod

Constructor Details

CoordGmsImpl

public CoordGmsImpl(GMS g)

Method Details

handleJoin

public boolean handleJoin(Address mbr)
Overrides:
handleJoin in interface 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.
Overrides:
handleLeave in interface GmsImpl

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.
Overrides:
handleMerge in interface GmsImpl

handleSuspect

public void handleSuspect(Address mbr)
Overrides:
handleSuspect in interface GmsImpl

handleViewChange

public void handleViewChange(ViewId new_view,
                             Vector mbrs)
Overrides:
handleViewChange in interface GmsImpl

init

public void init()
Overrides:
init in interface GmsImpl

join

public void join(Address mbr)
Overrides:
join in interface GmsImpl

leave

public void leave(Address mbr)
The coordinator itself wants to leave the group
Overrides:
leave in interface GmsImpl

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.
Overrides:
merge in interface GmsImpl
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)
Overrides:
suspect in interface GmsImpl

Copyright B) 2001,2002 www.jgroups.com . All Rights Reserved.