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
The PING protocol layer retrieves the initial membership (used by the GMS when started
by sending event FIND_INITIAL_MBRS down the stack). We do this by mcasting PING
requests to an IP MCAST address (or, if gossiping is enabled, by contacting the gossip
server). The responses should allow us to determine the coordinator whom we have to
contact, e.g. in case we want to join the group. When we are a server (after having
received the BECOME_SERVER event), we'll respond to PING requests with a PING
response. The FIND_INITIAL_MBRS event will eventually be answered with a
FIND_INITIAL_MBRS_OK event up the stack.
-
PING()
-
-
Down(Event)
- An event is to be sent down the stack.
-
GetName()
-
-
ProvidedUpServices()
- List of events that are provided to layers above (they will be handled when sent down from
above)
-
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
ProvidedUpServices
public Vector ProvidedUpServices()
- List of events that are provided to layers above (they will be handled when sent down from
above)
- Overrides:
- ProvidedUpServices 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
All Packages Class Hierarchy This Package Previous Next Index