org.jgroups.protocols
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.
Version: $Revision: 1.11 $
Constructor Summary | |
---|---|
ClientGmsImpl(GMS g) |
Method Summary | |
---|---|
boolean | handleJoin(Address mbr) |
void | handleLeave(Address mbr, boolean suspected)
Returns false. |
View | handleMerge(ViewId other_view, Vector other_members)
Returns immediately. |
void | handleSuspect(Address mbr)
Returns immediately. |
boolean | handleUpEvent(Event evt) |
void | handleViewChange(ViewId new_view, 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(Vector other_coords) |
void | suspect(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.
Parameters: mbr Our own address (assigned through SET_LOCAL_ADDRESS)