Package org.jgroups.protocols.pbcast
Class ParticipantGmsImpl
java.lang.Object
org.jgroups.protocols.pbcast.GmsImpl
org.jgroups.protocols.pbcast.ServerGmsImpl
org.jgroups.protocols.pbcast.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 TypeMethodDescriptionvoidhandleJoinResponse(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 oursvoidvoidhandleMembershipChange(Collection<GmsImpl.Request> requests) voidhandleViewChange(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.voidinit()voidvoidjoinWithStateTransfer(Address mbr, boolean useFlushIfPresent) voidLoop: determine coord.voidvoidRemoves previously suspected member from list of currently suspected membersMethods inherited from class org.jgroups.protocols.pbcast.ServerGmsImpl
handleDigestResponse, handleMergeRequest, handleMergeViewMethods inherited from class org.jgroups.protocols.pbcast.GmsImpl
handleMergeCancelled, handleMergeResponse, iWouldBeCoordinator, merge, sendMergeRejectedResponse, start, stop, wrongMethod
-
Constructor Details
-
ParticipantGmsImpl
-
-
Method Details
-
init
-
join
-
joinWithStateTransfer
- Specified by:
joinWithStateTransferin classGmsImpl
-
leave
Loop: determine coord. If coord is me --> handleLeave(). Else send handleLeave() to coord until success -
handleJoinResponse
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- Overrides:
handleJoinResponsein classGmsImpl- Parameters:
join_rsp-
-
handleLeaveResponse
public void handleLeaveResponse()- Overrides:
handleLeaveResponsein classGmsImpl
-
suspect
-
unsuspect
Removes previously suspected member from list of currently suspected members -
handleMembershipChange
- Overrides:
handleMembershipChangein classGmsImpl
-
handleViewChange
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.- 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
-