public class ClientGmsImpl extends GmsImpl
Join
(called by clients who want to join a certain group, and
ViewChange
which is called by the coordinator that was contacted by this client, to
tell the client what its initial membership is.Constructor and Description |
---|
ClientGmsImpl(GMS g) |
Modifier and Type | Method and Description |
---|---|
boolean |
handleJoin(Address mbr) |
void |
handleLeave(Address mbr,
boolean suspected)
Returns false.
|
View |
handleMerge(ViewId other_view,
java.util.Vector other_members)
Returns immediately.
|
void |
handleSuspect(Address mbr)
Returns immediately.
|
boolean |
handleUpEvent(Event evt) |
void |
handleViewChange(ViewId new_view,
java.util.Vector mems)
Install the first view in which we are a member.
|
void |
init() |
void |
join(Address mbr)
Will generate a CONNECT_OK event.
|
void |
leave(Address mbr) |
void |
merge(java.util.Vector other_coords) |
void |
suspect(Address mbr) |
handleDownEvent, iWouldBeCoordinator, wrongMethod
public ClientGmsImpl(GMS g)
public void join(Address mbr)
When GMS.disable_initial_coord is set to true, then we won't become coordinator on receiving an initial membership of 0, but instead will retry (forever) until we get an initial membership of > 0.
public boolean handleJoin(Address mbr)
handleJoin
in class GmsImpl
public void handleLeave(Address mbr, boolean suspected)
handleLeave
in class GmsImpl
public void handleViewChange(ViewId new_view, java.util.Vector mems)
handleViewChange
in class GmsImpl
public View handleMerge(ViewId other_view, java.util.Vector other_members)
handleMerge
in class GmsImpl
public void handleSuspect(Address mbr)
handleSuspect
in class GmsImpl
public boolean handleUpEvent(Event evt)
handleUpEvent
in class GmsImpl
Copyright ? 1998-2006 Bela Ban. All Rights Reserved.