org.jgroups.protocols.pbcast
Class ClientGmsImpl
java.lang.Object
org.jgroups.protocols.pbcast.GmsImpl
org.jgroups.protocols.pbcast.ClientGmsImpl
public class ClientGmsImpl
- extends GmsImpl
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
| Fields inherited from class org.jgroups.protocols.pbcast.GmsImpl |
gms, log |
| Methods inherited from class org.jgroups.protocols.pbcast.GmsImpl |
handleDigestResponse, handleExit, handleMergeCancelled, handleMergeRequest, handleMergeResponse, handleMergeView, handleUpEvent, iWouldBeCoordinator, merge, sendMergeRejectedResponse, start, stop, wrongMethod |
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
ClientGmsImpl
public ClientGmsImpl(GMS g)
init
public void init()
throws java.lang.Exception
- Overrides:
init in class GmsImpl
- Throws:
java.lang.Exception
join
public void join(Address address)
- Specified by:
join in class GmsImpl
joinWithStateTransfer
public void joinWithStateTransfer(Address address)
- Specified by:
joinWithStateTransfer in class GmsImpl
leave
public void leave(Address mbr)
- Specified by:
leave in class GmsImpl
handleJoinResponse
public void handleJoinResponse(JoinRsp join_rsp)
- Specified by:
handleJoinResponse in class GmsImpl
handleLeaveResponse
public void handleLeaveResponse()
- Specified by:
handleLeaveResponse in class GmsImpl
suspect
public void suspect(Address mbr)
- Specified by:
suspect in class GmsImpl
unsuspect
public void unsuspect(Address mbr)
- Specified by:
unsuspect in class GmsImpl
handleMembershipChange
public void handleMembershipChange(java.util.Collection<GmsImpl.Request> requests)
- Specified by:
handleMembershipChange in class GmsImpl
handleViewChange
public void handleViewChange(View new_view,
Digest digest)
- Does nothing. Discards all views while still client.
- Specified by:
handleViewChange in class GmsImpl
Copyright ? 1998-2008 Bela Ban. All Rights Reserved.