All Packages  Class Hierarchy  This Package  Previous  Next  Index

Class JavaGroups.JavaStack.Protocols.MERGE

java.lang.Object
   |
   +----JavaGroups.JavaStack.Protocol
           |
           +----JavaGroups.JavaStack.Protocols.MERGE

public class MERGE
extends Protocol
implements Runnable
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 BECOME_SERVER event.


Constructor Index

 o MERGE()

Method Index

 o Down(Event)
An event is to be sent down the stack.
 o GetName()
 o run()
If IP multicast: periodically mcast a HELLO message If gossiping: periodically retrieve the membership.
 o SetProperties(Properties)
Configures the protocol initially.
 o Up(Event)
An event was received from the layer below.

Constructors

 o MERGE
 public MERGE()

Methods

 o GetName
 public String GetName()
Overrides:
GetName in class Protocol
 o SetProperties
 public boolean SetProperties(Properties props)
Configures the protocol initially.

Overrides:
SetProperties in class Protocol
 o Up
 public void Up(Event evt)
An event was received from the layer below.

Overrides:
Up in class Protocol
 o Down
 public void Down(Event evt)
An event is to be sent down the stack.

Overrides:
Down in class Protocol
 o 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).


All Packages  Class Hierarchy  This Package  Previous  Next  Index