Package org.jgroups.protocols.pbcast
Class ClientGmsImpl
java.lang.Object
org.jgroups.protocols.pbcast.GmsImpl
org.jgroups.protocols.pbcast.ClientGmsImpl
Client part of GMS. Whenever a new member wants to join a group, it starts in the CLIENT role.
No multicasts to the group will be received and processed until the member has been joined and
turned into a SERVER (either coordinator or participant, mostly just participant). This class
only implements
Join
(called by clients who want to join a certain group, and
ViewChange
which is called by the coordinator that was contacted by this client, to
tell the client what its initial membership is.- Version:
- $Id: ClientGmsImpl.java,v 1.56.2.4.2.1 2009/04/06 11:47:10 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) void
void
handleMembershipChange
(Collection<GmsImpl.Request> requests) void
handleViewChange
(View new_view, Digest digest) Does nothing.void
init()
void
void
joinWithStateTransfer
(Address address) void
void
void
Methods inherited from class org.jgroups.protocols.pbcast.GmsImpl
handleDigestResponse, handleExit, handleMergeCancelled, handleMergeRequest, handleMergeResponse, handleMergeView, handleUpEvent, iWouldBeCoordinator, merge, sendMergeRejectedResponse, start, stop, wrongMethod
-
Constructor Details
-
ClientGmsImpl
-
-
Method Details
-
init
-
join
-
joinWithStateTransfer
- Specified by:
joinWithStateTransfer
in classGmsImpl
-
leave
-
handleJoinResponse
- Specified by:
handleJoinResponse
in classGmsImpl
-
handleLeaveResponse
public void handleLeaveResponse()- Specified by:
handleLeaveResponse
in classGmsImpl
-
suspect
-
unsuspect
-
handleMembershipChange
- Specified by:
handleMembershipChange
in classGmsImpl
-
handleViewChange
Does nothing. Discards all views while still client.- Specified by:
handleViewChange
in classGmsImpl
-