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 |
---|---|
void |
handleJoinResponse(JoinRsp join_rsp) |
void |
handleLeaveResponse() |
void |
handleMembershipChange(java.util.Collection newMembers,
java.util.Collection leavingMembers,
java.util.Collection suspectedMembers) |
boolean |
handleUpEvent(Event evt)
Returns immediately.
|
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) |
handleExit, handleMergeCancelled, handleMergeRequest, handleMergeResponse, handleMergeView, iWouldBeCoordinator, merge, sendMergeRejectedResponse, start, stop, wrongMethod
public ClientGmsImpl(GMS g)
public void init() throws java.lang.Exception
public void join(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.
public void handleJoinResponse(JoinRsp join_rsp)
handleJoinResponse
in class GmsImpl
public void handleLeaveResponse()
handleLeaveResponse
in class GmsImpl
public void handleMembershipChange(java.util.Collection newMembers, java.util.Collection leavingMembers, java.util.Collection suspectedMembers)
handleMembershipChange
in class GmsImpl
public void handleViewChange(View new_view, Digest digest)
handleViewChange
in class GmsImpl
public boolean handleUpEvent(Event evt)
handleUpEvent
in class GmsImpl
Copyright ? 1998-2006 Bela Ban. All Rights Reserved.