org.jgroups.protocols.pbcast
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.29 $
Constructor Summary | |
---|---|
ClientGmsImpl(GMS g) |
Method Summary | |
---|---|
void | handleJoin(Address mbr) |
void | handleJoinResponse(JoinRsp join_rsp) |
void | handleLeave(Address mbr, boolean suspected) Returns false. |
void | handleLeaveResponse() |
void | handleSuspect(Address mbr) Returns immediately. |
boolean | handleUpEvent(Event evt) |
void | handleViewChange(View new_view, Digest digest)
Does nothing. |
void | init() |
void | join(Address mbr)
Joins this process to a group. |
void | leave(Address mbr) |
void | suspect(Address mbr) |
void | unsuspect(Address mbr) |
If successful, impl is changed to an instance of ParticipantGmsImpl. Otherwise, we continue trying to send join() messages to the coordinator, until we succeed (or there is no member in the group. In this case, we create our own singleton group).
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)