org.jgroups.protocols

Class TCPPING

public class TCPPING extends Discovery

The TCPPING protocol layer retrieves the initial membership in answer to the GMS's FIND_INITIAL_MBRS event. The initial membership is retrieved by directly contacting other group members, sending point-to-point mebership requests. The responses should allow us to determine the coordinator whom we have to contact in case we want to join the group. When we are a server (after having received the BECOME_SERVER event), we'll respond to TCPPING requests with a TCPPING response.

The FIND_INITIAL_MBRS event will eventually be answered with a FIND_INITIAL_MBRS_OK event up the stack.

The TCPPING protocol requires a static conifiguration, which assumes that you to know in advance where to find other members of your group. For dynamic discovery, use the PING protocol, which uses multicast discovery, or the TCPGOSSIP protocol, which contacts a Gossip Router to acquire the initial membership.

Author: Bela Ban

Method Summary
StringgetName()
voidlocalAddressSet(Address addr)
voidsendGetMembersRequest()
booleansetProperties(Properties props)

Method Detail

getName

public String getName()

localAddressSet

public void localAddressSet(Address addr)

sendGetMembersRequest

public void sendGetMembersRequest()

setProperties

public boolean setProperties(Properties props)
Copyright ? 1998-2005 Bela Ban. All Rights Reserved.