org.jgroups.protocols
Class GmsImpl
java.lang.Object
org.jgroups.protocols.GmsImpl
public abstract class GmsImpl
extends java.lang.Object
log
protected final Log log
handleDownEvent
public boolean handleDownEvent(Event evt)
handleJoin
public abstract boolean handleJoin(Address mbr)
handleLeave
public abstract void handleLeave(Address mbr,
boolean suspected)
handleMerge
public abstract View handleMerge(ViewId other_view,
Vector other_members)
handleSuspect
public abstract void handleSuspect(Address mbr)
handleUpEvent
public boolean handleUpEvent(Event evt)
handleViewChange
public abstract 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 abstract void init()
join
public abstract void join(Address mbr)
leave
public abstract void leave(Address mbr)
merge
public abstract void merge(Vector coords)
suspect
public abstract void suspect(Address mbr)
wrongMethod
protected void wrongMethod(String method_name)
Copyright B) 1998-2005 Bela Ban. All Rights Reserved.