Docjar: A Java Source and Docuemnt Enginecom.*    java.*    javax.*    org.*    all    new    plug-in

Quick Search    Search Deep

org.jgroups.protocols
Class ParticipantGmsImpl  view ParticipantGmsImpl download ParticipantGmsImpl.java

java.lang.Object
  extended byorg.jgroups.protocols.GmsImpl
      extended byorg.jgroups.protocols.ParticipantGmsImpl

public class ParticipantGmsImpl
extends GmsImpl


Field Summary
(package private)  java.lang.Object leave_mutex
           
(package private)  boolean leaving
           
(package private)  java.util.Vector new_mbrs
           
(package private)  boolean received_final_view
           
(package private)  java.util.Vector suspected_mbrs
           
 
Fields inherited from class org.jgroups.protocols.GmsImpl
gms, log, warn
 
Constructor Summary
ParticipantGmsImpl(GMS g)
           
 
Method Summary
 boolean handleJoin(org.jgroups.Address mbr)
           
 void handleLeave(org.jgroups.Address mbr, boolean suspected)
           
 org.jgroups.View handleMerge(org.jgroups.ViewId other_view, java.util.Vector other_members)
           
 void handleSuspect(org.jgroups.Address mbr)
           
 void handleViewChange(org.jgroups.ViewId new_view, java.util.Vector mbrs)
          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 join(org.jgroups.Address mbr)
           
 void leave(org.jgroups.Address mbr)
          Loop: determine coord.
 void merge(java.util.Vector other_coords)
           
 void suspect(org.jgroups.Address mbr)
           
 
Methods inherited from class org.jgroups.protocols.GmsImpl
handleDownEvent, handleUpEvent, iWouldBeCoordinator, wrongMethod
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

leaving

boolean leaving

received_final_view

boolean received_final_view

leave_mutex

final java.lang.Object leave_mutex

suspected_mbrs

final java.util.Vector suspected_mbrs

new_mbrs

final java.util.Vector new_mbrs
Constructor Detail

ParticipantGmsImpl

public ParticipantGmsImpl(GMS g)
Method Detail

init

public final void init()
Specified by:
init in class GmsImpl

join

public void join(org.jgroups.Address mbr)
Specified by:
join in class GmsImpl

leave

public void leave(org.jgroups.Address mbr)
Loop: determine coord. If coord is me --> handleLeave(). Else send handleLeave() to coord until success.

Specified by:
leave in class GmsImpl

suspect

public void suspect(org.jgroups.Address mbr)
Specified by:
suspect in class GmsImpl

merge

public void merge(java.util.Vector other_coords)
Specified by:
merge in class GmsImpl

handleJoin

public boolean handleJoin(org.jgroups.Address mbr)
Specified by:
handleJoin in class GmsImpl

handleLeave

public void handleLeave(org.jgroups.Address mbr,
                        boolean suspected)
Specified by:
handleLeave in class GmsImpl

handleViewChange

public void handleViewChange(org.jgroups.ViewId new_view,
                             java.util.Vector mbrs)
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 class GmsImpl

handleMerge

public org.jgroups.View handleMerge(org.jgroups.ViewId other_view,
                                    java.util.Vector other_members)
Specified by:
handleMerge in class GmsImpl

handleSuspect

public void handleSuspect(org.jgroups.Address mbr)
Specified by:
handleSuspect in class GmsImpl