org.jgroups.protocols

Class MERGE3

public class MERGE3 extends Protocol

Protocol to discover subgroups; e.g., existing due to a network partition (that healed). Example: group {p,q,r,s,t,u,v,w} is split into 3 subgroups {p,q}, {r,s,t,u} and {v,w}. This protocol will eventually send a MERGE event with the coordinators of each subgroup up the stack: {p,r,v}. Note that - depending on the time of subgroup discovery - there could also be 2 MERGE events, which first join 2 of the subgroups, and then the resulting group to the last subgroup. The real work of merging the subgroups into one larger group is done somewhere above this protocol (typically in the GMS protocol).

This protocol works as follows:

Nested Class Summary
static classMERGE3.CoordAnnouncement
Method Summary
voiddown(Event evt)
StringgetName()
voidinit()
booleansetProperties(Properties props)
voidstartDownHandler()
This prevents the down-handler thread to be created, which is not needed in the protocol.
voidstartUpHandler()
This prevents the up-handler thread to be created, which is not needed in the protocol.
voidup(Event evt)

Method Detail

down

public void down(Event evt)

getName

public String getName()

init

public void init()

setProperties

public boolean setProperties(Properties props)

startDownHandler

public void startDownHandler()
This prevents the down-handler thread to be created, which is not needed in the protocol. DON'T REMOVE !

startUpHandler

public void startUpHandler()
This prevents the up-handler thread to be created, which is not needed in the protocol. DON'T REMOVE !

up

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