org.jgroups.protocols

Class ParticipantGmsImpl


public class ParticipantGmsImpl
extends GmsImpl

Field Summary

Fields inherited from class org.jgroups.protocols.GmsImpl

gms, log

Constructor Summary

ParticipantGmsImpl(GMS g)

Method Summary

boolean
handleJoin(Address mbr)
void
handleLeave(Address mbr, boolean suspected)
View
handleMerge(ViewId other_view, Vector other_members)
void
handleSuspect(Address mbr)
void
handleViewChange(ViewId new_view, 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(Vector other_coords)
void
suspect(Address mbr)

Methods inherited from class org.jgroups.protocols.GmsImpl

handleDownEvent, handleJoin, handleLeave, handleMerge, handleSuspect, handleUpEvent, handleViewChange, iWouldBeCoordinator, init, join, leave, merge, suspect, wrongMethod

Constructor Details

ParticipantGmsImpl

public ParticipantGmsImpl(GMS g)

Method Details

handleJoin

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

handleLeave

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

handleMerge

public View handleMerge(ViewId other_view,
                        Vector other_members)
Overrides:
handleMerge in interface GmsImpl

handleSuspect

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

handleViewChange

public void handleViewChange(ViewId new_view,
                             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 interface GmsImpl

init

public void init()
Overrides:
init in interface GmsImpl

join

public void join(Address mbr)
Overrides:
join in interface 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 interface GmsImpl

merge

public void merge(Vector other_coords)
Overrides:
merge in interface GmsImpl

suspect

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

Copyright B) 2001,2002 www.jgroups.com . All Rights Reserved.