public class CoordGmsImpl extends GmsImpl
Constructor and Description |
---|
CoordGmsImpl(GMS g) |
Modifier and Type | Method and Description |
---|---|
void |
handleExit() |
void |
handleJoinResponse(JoinRsp join_rsp) |
void |
handleLeaveResponse() |
void |
handleMembershipChange(java.util.Collection new_mbrs,
java.util.Collection leaving_mbrs,
java.util.Collection suspected_mbrs)
Exclude
mbr from the membership. |
void |
handleMergeCancelled(ViewId merge_id) |
void |
handleMergeRequest(Address sender,
ViewId merge_id)
Get the view and digest and send back both (MergeData) in the form of a MERGE_RSP to the sender.
|
void |
handleMergeResponse(MergeData data,
ViewId merge_id) |
void |
handleMergeView(MergeData data,
ViewId merge_id)
If merge_id is not equal to this.merge_id then discard.
|
void |
handleViewChange(View new_view,
Digest digest)
Called by the GMS when a VIEW is received.
|
void |
init() |
void |
join(Address mbr) |
void |
leave(Address mbr)
The coordinator itself wants to leave the group
|
void |
merge(java.util.Vector other_coords)
Invoked upon receiving a MERGE event from the MERGE layer.
|
void |
stop() |
void |
suspect(Address mbr) |
void |
unsuspect(Address mbr) |
handleUpEvent, iWouldBeCoordinator, sendMergeRejectedResponse, start, wrongMethod
public CoordGmsImpl(GMS g)
public void init() throws java.lang.Exception
public void leave(Address mbr)
public void handleJoinResponse(JoinRsp join_rsp)
handleJoinResponse
in class GmsImpl
public void handleLeaveResponse()
handleLeaveResponse
in class GmsImpl
public void merge(java.util.Vector other_coords)
public void handleMergeRequest(Address sender, ViewId merge_id)
handleMergeRequest
in class GmsImpl
public void handleMergeResponse(MergeData data, ViewId merge_id)
handleMergeResponse
in class GmsImpl
public void handleMergeView(MergeData data, ViewId merge_id)
handleMergeView
in class GmsImpl
public void handleMergeCancelled(ViewId merge_id)
handleMergeCancelled
in class GmsImpl
public void handleMembershipChange(java.util.Collection new_mbrs, java.util.Collection leaving_mbrs, java.util.Collection suspected_mbrs)
mbr
from the membership. If suspected
is true, then
this member crashed and therefore is forced to leave, otherwise it is leaving voluntarily.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 handleExit()
handleExit
in class GmsImpl
Copyright ? 1998-2006 Bela Ban. All Rights Reserved.