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.


Constructor Index

 o PING()

Method Index

 o Down(Event)
An event is to be sent down the stack.
 o GetName()
 o ProvidedUpServices()
List of events that are provided to layers above (they will be handled when sent down from above)
 o SetProperties(Properties)
Configures the protocol initially.
 o Up(Event)
An event was received from the layer below.

Constructors

 o PING
 public PING()

Methods

 o GetName
 public String GetName()
Overrides:
GetName in class Protocol
 o 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
 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

All Packages  Class Hierarchy  This Package  Previous  Next  Index