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.
-
MERGE()
-
-
Down(Event)
- An event is to be sent down the stack.
-
GetName()
-
-
run()
- If IP multicast: periodically mcast a HELLO message
If gossiping: periodically retrieve the membership.
-
SetProperties(Properties)
- Configures the protocol initially.
-
Up(Event)
- An event was received from the layer below.
MERGE
public MERGE()
GetName
public String GetName()
- Overrides:
- GetName in class Protocol
SetProperties
public boolean SetProperties(Properties props)
- Configures the protocol initially.
- Overrides:
- SetProperties in class Protocol
Up
public void Up(Event evt)
- An event was received from the layer below.
- Overrides:
- Up in class Protocol
Down
public void Down(Event evt)
- An event is to be sent down the stack.
- Overrides:
- Down in class Protocol
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