Package org.jgroups.protocols.pbcast
Class ParticipantGmsImpl
java.lang.Object
org.jgroups.protocols.pbcast.GmsImpl
org.jgroups.protocols.pbcast.ParticipantGmsImpl
- Version:
- $Id: ParticipantGmsImpl.java,v 1.29.4.1 2009/04/07 09:53:56 belaban Exp $
- 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 TypeMethodDescriptionvoid
handleJoinResponse
(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 oursvoid
void
handleMembershipChange
(Collection<GmsImpl.Request> requests) void
handleMergeRequest
(Address sender, ViewId merge_id) void
handleViewChange
(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.void
init()
void
void
void
Loop: determine coord.void
void
Removes previously suspected member from list of currently suspected membersMethods inherited from class org.jgroups.protocols.pbcast.GmsImpl
handleDigestResponse, handleExit, handleMergeCancelled, handleMergeResponse, handleMergeView, handleUpEvent, iWouldBeCoordinator, merge, sendMergeRejectedResponse, start, stop, wrongMethod
-
Constructor Details
-
ParticipantGmsImpl
-
-
Method Details
-
init
-
join
-
joinWithStateTransfer
- Specified by:
joinWithStateTransfer
in 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- Specified by:
handleJoinResponse
in classGmsImpl
- Parameters:
join_rsp
-
-
handleLeaveResponse
public void handleLeaveResponse()- Specified by:
handleLeaveResponse
in classGmsImpl
-
suspect
-
unsuspect
Removes previously suspected member from list of currently suspected members -
handleMembershipChange
- Specified by:
handleMembershipChange
in 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.- Specified by:
handleViewChange
in 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
-
handleMergeRequest
- Overrides:
handleMergeRequest
in classGmsImpl
-