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.
-
Nested Class Summary
Nested classes/interfaces inherited from class org.jgroups.protocols.pbcast.GmsImpl
GmsImpl.Request -
Field Summary
Fields -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescription(package private) voidFetches the digests from all members and installs them again.voidvoidhandleMembershipChange(Collection<GmsImpl.Request> requests) voidinit()voidvoidjoinWithStateTransfer(Address mbr, boolean useFlushIfPresent) voidleave()The coordinator itself wants to leave the groupprivate voidsendLeaveResponses(Collection<Address> leaving_members) voidstop()voidMethods inherited from class org.jgroups.protocols.pbcast.ServerGmsImpl
coordChanged, handleDigestResponse, handleMergeCancelled, handleMergeRequest, handleMergeResponse, handleMergeView, handleViewChange, mergeMethods inherited from class org.jgroups.protocols.pbcast.GmsImpl
handleJoinResponse, handleLeaveResponse, sendMergeRejectedResponse, start, unsuspect, wrongMethod
-
Field Details
-
MAX_SUSPEND_TIMEOUT
-
-
Constructor Details
-
CoordGmsImpl
-
-
Method Details
-
getMergeId
-
init
- Overrides:
initin classServerGmsImpl- Throws:
Exception
-
join
-
joinWithStateTransfer
- Specified by:
joinWithStateTransferin classGmsImpl
-
leave
public void leave()The coordinator itself wants to leave the group -
handleCoordLeave
public void handleCoordLeave()- Overrides:
handleCoordLeavein classGmsImpl
-
suspect
-
fixDigests
void fixDigests()Fetches the digests from all members and installs them again. Used only for diagnosis and support; don't use this otherwise ! -
handleMembershipChange
- Overrides:
handleMembershipChangein classGmsImpl
-
stop
public void stop() -
sendLeaveResponses
-