All Packages Class Hierarchy This Package Previous Next Index
Class JavaGroups.JavaStack.Protocols.PING
java.lang.Object
|
+----JavaGroups.JavaStack.Protocol
|
+----JavaGroups.JavaStack.Protocols.PING
- public class PING
- extends Protocol
- implements Runnable
The PING protocol layer serves 2 tasks: it retrieves the initial membership (used by
the GMS when started) and it periodically mcasts a HELLO message. When the coordinator
receives a HELLO message from a process that is currently not member, it will join that
process to the group.
-
PING()
-
-
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.
PING
public PING()
GetName
public String GetName()
- Overrides:
- GetName in class Protocol
SetProperties
public void 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