public class CoordGmsImpl extends GmsImpl
Constructor and Description |
---|
CoordGmsImpl(GMS g) |
Modifier and Type | Method and Description |
---|---|
boolean |
handleJoin(Address mbr) |
void |
handleLeave(Address mbr,
boolean suspected)
Exclude
mbr from the membership. |
View |
handleMerge(ViewId other_vid,
java.util.Vector other_mbrs)
Invoked by another coordinator that asks to merge its view with mine.
|
void |
handleSuspect(Address mbr) |
void |
handleViewChange(ViewId new_view,
java.util.Vector mbrs) |
void |
init() |
void |
join(Address mbr) |
void |
leave(Address mbr)
The coordinator itself wants to leave the group
|
void |
merge(java.util.Vector other_coords)
Invoked upon receiving a MERGE event from the MERGE layer.
|
void |
suspect(Address mbr) |
handleDownEvent, handleUpEvent, iWouldBeCoordinator, wrongMethod
public CoordGmsImpl(GMS g)
public void leave(Address mbr)
public void merge(java.util.Vector other_coords)
public boolean handleJoin(Address mbr)
handleJoin
in class GmsImpl
public void handleLeave(Address mbr, boolean suspected)
mbr
from the membership. If suspected
is true, then
this member crashed and therefore is forced to leave, otherwise it is leaving voluntarily.handleLeave
in class GmsImpl
public void handleViewChange(ViewId new_view, java.util.Vector mbrs)
handleViewChange
in class GmsImpl
public View handleMerge(ViewId other_vid, java.util.Vector other_mbrs)
handleMerge
in class GmsImpl
public void handleSuspect(Address mbr)
handleSuspect
in class GmsImpl
Copyright ? 1998-2006 Bela Ban. All Rights Reserved.