org.javagroups.protocols
Class ParticipantGmsImpl

java.lang.Object
  |
  +--org.javagroups.protocols.GmsImpl
        |
        +--org.javagroups.protocols.ParticipantGmsImpl

public class ParticipantGmsImpl
extends GmsImpl


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

Constructor Detail

ParticipantGmsImpl

public ParticipantGmsImpl(GMS g)
Method Detail

init

public void init()
Overrides:
init in class GmsImpl

join

public void join(Address mbr)
Overrides:
join in class GmsImpl

leave

public void leave(Address mbr)
Loop: determine coord. If coord is me --> handleLeave(). Else send handleLeave() to coord until success.
Overrides:
leave in class GmsImpl

suspect

public void suspect(Address mbr)
Overrides:
suspect in class GmsImpl

merge

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

handleJoin

public boolean handleJoin(Address mbr)
Overrides:
handleJoin in class GmsImpl

handleLeave

public void handleLeave(Address mbr,
                        boolean suspected)
Overrides:
handleLeave in class GmsImpl

handleViewChange

public void handleViewChange(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.
Overrides:
handleViewChange in class GmsImpl

handleMerge

public View handleMerge(ViewId other_view,
                        java.util.Vector other_members)
Overrides:
handleMerge in class GmsImpl

handleSuspect

public void handleSuspect(Address mbr)
Overrides:
handleSuspect in class GmsImpl


Copyright © 2001,2002 www.javagroups.com . All Rights Reserved.