org.jgroups.protocols

Class MERGE

public class MERGE extends Protocol implements Runnable

Simple and stupid MERGE protocol (does not take into account state transfer). Periodically mcasts a HELLO message with its own address. When a HELLO message is received from a member that has the same group (UDP discards all messages with a group name different that our own), but is not currently in the group, a MERGE event is sent up the stack. The protocol starts working upon receiving a View in which it is the coordinator.

Author: Gianluca Collot, Jan 2001

Nested Class Summary
static classMERGE.MergeHeader
Method Summary
voiddown(Event evt)
StringgetName()
voidrun()
If IP multicast: periodically mcast a HELLO message If gossiping: periodically retrieve the membership.
booleansetProperties(Properties props)
voidstart()
voidstop()
voidup(Event evt)

Method Detail

down

public void down(Event evt)

getName

public String getName()

run

public void run()
If IP multicast: periodically mcast a HELLO message If gossiping: periodically retrieve the membership. Any members not part of our own membership are merged (passing MERGE event up).

setProperties

public boolean setProperties(Properties props)

start

public void start()

stop

public void stop()

up

public void up(Event evt)
Copyright ? 1998-2005 Bela Ban. All Rights Reserved.