public class ParticipantGmsImpl extends GmsImpl
Constructor and Description |
---|
ParticipantGmsImpl(GMS g) |
Modifier and Type | Method and Description |
---|---|
void |
handleJoinResponse(JoinRsp join_rsp)
In case we get a different JOIN_RSP from a previous JOIN_REQ sent by us (as a client), we simply apply the
new view if it is greater than ours
|
void |
handleLeaveResponse() |
void |
handleMembershipChange(java.util.Collection newMembers,
java.util.Collection leavingMembers,
java.util.Collection suspectedMembers) |
void |
handleMergeRequest(Address sender,
ViewId merge_id) |
void |
handleViewChange(View new_view,
Digest digest)
If we are leaving, we have to wait for the view change (last msg in the current view) that
excludes us before we can leave.
|
void |
init() |
void |
join(Address mbr) |
void |
leave(Address mbr)
Loop: determine coord.
|
void |
suspect(Address mbr) |
void |
unsuspect(Address mbr)
Removes previously suspected member from list of currently suspected members
|
handleExit, handleMergeCancelled, handleMergeResponse, handleMergeView, handleUpEvent, iWouldBeCoordinator, merge, sendMergeRejectedResponse, start, stop, wrongMethod
public ParticipantGmsImpl(GMS g)
public void init() throws java.lang.Exception
public void leave(Address mbr)
public void handleJoinResponse(JoinRsp join_rsp)
handleJoinResponse
in class GmsImpl
join_rsp
- public void handleLeaveResponse()
handleLeaveResponse
in class GmsImpl
public void unsuspect(Address mbr)
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
new_view
- The view to be installeddigest
- If view is a MergeView, digest contains the seqno digest of all members and has to
be set by GMSpublic void handleMergeRequest(Address sender, ViewId merge_id)
handleMergeRequest
in class GmsImpl
Copyright ? 1998-2006 Bela Ban. All Rights Reserved.