Package org.jgroups.protocols.pbcast
Class ServerGmsImpl
java.lang.Object
org.jgroups.protocols.pbcast.GmsImpl
org.jgroups.protocols.pbcast.ServerGmsImpl
- Direct Known Subclasses:
CoordGmsImpl,ParticipantGmsImpl
Common super class for CoordGmsImpl and ParticipantGmsImpl
- Author:
- Bela Ban
-
Nested Class Summary
Nested classes/interfaces inherited from class org.jgroups.protocols.pbcast.GmsImpl
GmsImpl.Request -
Field Summary
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionvoidhandleDigestResponse(Address sender, Digest digest) voidhandleMergeRequest(Address sender, MergeId merge_id, Collection<? extends Address> mbrs) Get the view and digest and send back both (MergeData) in the form of a MERGE_RSP to the sender.voidhandleMergeView(MergeData data, MergeId merge_id) If merge_id is not equal to this.merge_id then discard.Methods inherited from class org.jgroups.protocols.pbcast.GmsImpl
handleJoinResponse, handleLeaveResponse, handleMembershipChange, handleMergeCancelled, handleMergeResponse, handleViewChange, init, iWouldBeCoordinator, join, joinWithStateTransfer, leave, merge, sendMergeRejectedResponse, start, stop, suspect, unsuspect, wrongMethod
-
Constructor Details
-
ServerGmsImpl
-
-
Method Details
-
handleMergeRequest
public void handleMergeRequest(Address sender, MergeId merge_id, Collection<? extends Address> mbrs) Get the view and digest and send back both (MergeData) in the form of a MERGE_RSP to the sender. If a merge is already in progress, send back a MergeData with the merge_rejected field set to true.- Overrides:
handleMergeRequestin classGmsImpl- Parameters:
sender- The address of the merge leadermerge_id- The merge IDmbrs- The set of members from which we expect responses
-
handleMergeView
If merge_id is not equal to this.merge_id then discard. Else cast the view/digest to all members of this group.- Overrides:
handleMergeViewin classGmsImpl
-
handleDigestResponse
- Overrides:
handleDigestResponsein classGmsImpl
-