Class ServerGmsImpl

java.lang.Object
org.jgroups.protocols.pbcast.GmsImpl
org.jgroups.protocols.pbcast.ServerGmsImpl
Direct Known Subclasses:
CoordGmsImpl, ParticipantGmsImpl

public abstract class ServerGmsImpl extends GmsImpl
Common super class for CoordGmsImpl and ParticipantGmsImpl
Author:
Bela Ban
  • Constructor Details

    • ServerGmsImpl

      protected ServerGmsImpl(GMS gms)
  • Method Details

    • handleMergeRequest

      public void handleMergeRequest(Address sender, MergeId merge_id, Collection<? extends Address> mbrs)
      Get the view and digest and send back both (MergeData) in the form of a MERGE_RSP to the sender. If a merge is already in progress, send back a MergeData with the merge_rejected field set to true.
      Overrides:
      handleMergeRequest in class GmsImpl
      Parameters:
      sender - The address of the merge leader
      merge_id - The merge ID
      mbrs - The set of members from which we expect responses
    • handleMergeView

      public void handleMergeView(MergeData data, MergeId merge_id)
      If merge_id is not equal to this.merge_id then discard. Else cast the view/digest to all members of this group.
      Overrides:
      handleMergeView in class GmsImpl
    • handleDigestResponse

      public void handleDigestResponse(Address sender, Digest digest)
      Overrides:
      handleDigestResponse in class GmsImpl