public class CoordGmsImpl extends GmsImpl
GmsImpl.Request
Constructor and Description |
---|
CoordGmsImpl(GMS g) |
Modifier and Type | Method and Description |
---|---|
void |
handleDigestResponse(Address sender,
Digest digest) |
void |
handleExit() |
void |
handleJoinResponse(JoinRsp join_rsp) |
void |
handleLeaveResponse() |
void |
handleMembershipChange(java.util.Collection<GmsImpl.Request> requests) |
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 |
joinWithStateTransfer(Address mbr) |
void |
leave(Address mbr)
The coordinator itself wants to leave the group
|
void |
merge(java.util.Vector<Address> 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 joinWithStateTransfer(Address mbr)
joinWithStateTransfer
in class GmsImpl
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<Address> 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 handleDigestResponse(Address sender, Digest digest)
handleDigestResponse
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<GmsImpl.Request> requests)
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-2008 Bela Ban. All Rights Reserved.