org.jgroups.protocols
Class GmsImpl
java.lang.Object
org.jgroups.protocols.GmsImpl
- Direct Known Subclasses:
- ClientGmsImpl, CoordGmsImpl, ParticipantGmsImpl
public abstract class GmsImpl
- extends java.lang.Object
Field Summary |
protected GMS |
gms
|
protected org.apache.commons.logging.Log |
log
|
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
gms
protected GMS gms
log
protected final org.apache.commons.logging.Log log
GmsImpl
public GmsImpl()
init
public abstract void init()
join
public abstract void join(Address mbr)
leave
public abstract void leave(Address mbr)
suspect
public abstract void suspect(Address mbr)
merge
public abstract void merge(java.util.Vector coords)
handleJoin
public abstract boolean handleJoin(Address mbr)
handleLeave
public abstract void handleLeave(Address mbr,
boolean suspected)
handleViewChange
public abstract void handleViewChange(ViewId new_view,
java.util.Vector mbrs)
handleMerge
public abstract View handleMerge(ViewId other_view,
java.util.Vector other_members)
handleSuspect
public abstract void handleSuspect(Address mbr)
handleUpEvent
public boolean handleUpEvent(Event evt)
handleDownEvent
public boolean handleDownEvent(Event evt)
wrongMethod
protected void wrongMethod(java.lang.String method_name)
iWouldBeCoordinator
protected boolean iWouldBeCoordinator(java.util.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.
Copyright ? 1998-2005 Bela Ban. All Rights Reserved.