org.jgroups.protocols

Class GmsImpl

Known Direct Subclasses:
ClientGmsImpl, CoordGmsImpl, ParticipantGmsImpl

public abstract class GmsImpl
extends java.lang.Object

Field Summary

protected GMS
gms
protected Log
log

Method Summary

boolean
handleDownEvent(Event evt)
boolean
handleJoin(Address mbr)
void
handleLeave(Address mbr, boolean suspected)
View
handleMerge(ViewId other_view, Vector other_members)
void
handleSuspect(Address mbr)
boolean
handleUpEvent(Event evt)
void
handleViewChange(ViewId new_view, Vector mbrs)
protected boolean
iWouldBeCoordinator(Vector new_mbrs)
Returns potential coordinator based on lexicographic ordering of member addresses.
void
init()
void
join(Address mbr)
void
leave(Address mbr)
void
merge(Vector coords)
void
suspect(Address mbr)
protected void
wrongMethod(String method_name)

Field Details

gms

protected GMS gms


log

protected Log log

Method Details

handleDownEvent

public boolean handleDownEvent(Event evt)


handleJoin

public boolean handleJoin(Address mbr)


handleLeave

public void handleLeave(Address mbr,
                        boolean suspected)


handleMerge

public View handleMerge(ViewId other_view,
                        Vector other_members)


handleSuspect

public void handleSuspect(Address mbr)


handleUpEvent

public boolean handleUpEvent(Event evt)


handleViewChange

public void handleViewChange(ViewId new_view,
                             Vector mbrs)


iWouldBeCoordinator

protected boolean iWouldBeCoordinator(Vector new_mbrs)
Returns potential coordinator based on lexicographic ordering of member addresses. Another approach would be to keep track of the primary partition and return the first member if we are the primary partition.


init

public void init()


join

public void join(Address mbr)


leave

public void leave(Address mbr)


merge

public void merge(Vector coords)


suspect

public void suspect(Address mbr)


wrongMethod

protected void wrongMethod(String method_name)


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