Package org.jgroups.protocols.pbcast
Class CoordGmsImpl
java.lang.Object
org.jgroups.protocols.pbcast.GmsImpl
org.jgroups.protocols.pbcast.ServerGmsImpl
org.jgroups.protocols.pbcast.CoordGmsImpl
Coordinator role of the Group MemberShip (GMS) protocol. Accepts JOIN and LEAVE requests and emits view changes
accordingly.
- 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 TypeMethodDescriptionvoidhandleMembershipChange(Collection<GmsImpl.Request> requests) voidhandleMergeCancelled(MergeId merge_id) voidhandleMergeResponse(MergeData data, MergeId merge_id) voidhandleViewChange(View new_view, Digest digest) Called by the GMS when a VIEW is received.voidinit()voidvoidjoinWithStateTransfer(Address mbr, boolean useFlushIfPresent) voidThe coordinator itself wants to leave the groupvoidInvoked upon receiving a MERGE event from the MERGE layer.voidstop()voidMethods inherited from class org.jgroups.protocols.pbcast.ServerGmsImpl
handleDigestResponse, handleMergeRequest, handleMergeViewMethods inherited from class org.jgroups.protocols.pbcast.GmsImpl
handleJoinResponse, handleLeaveResponse, iWouldBeCoordinator, sendMergeRejectedResponse, start, unsuspect, wrongMethod
-
Constructor Details
-
CoordGmsImpl
-
-
Method Details
-
getMergeId
-
init
-
join
-
joinWithStateTransfer
- Specified by:
joinWithStateTransferin classGmsImpl
-
leave
The coordinator itself wants to leave the group -
suspect
-
merge
Invoked upon receiving a MERGE event from the MERGE layer. Starts the merge protocol. See description of protocol in DESIGN. -
handleMergeResponse
- Overrides:
handleMergeResponsein classGmsImpl
-
handleMergeCancelled
- Overrides:
handleMergeCancelledin classGmsImpl
-
handleMembershipChange
- Overrides:
handleMembershipChangein classGmsImpl
-
handleViewChange
Called by the GMS when a VIEW is received.- Overrides:
handleViewChangein classGmsImpl- Parameters:
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 GMS
-
stop
public void stop()
-