org.jgroups.protocols

Class TCPGOSSIP

public class TCPGOSSIP extends Discovery

The TCPGOSSIP 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 contacting one or more GossipServers, which must be running at well-known addresses:ports. 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 TCPGOSSIP requests with a TCPGOSSIP response.

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

Author: Bela Ban

Method Summary
StringgetName()
voidhandleConnectOK()
voidsendGetMembersRequest()
booleansetProperties(Properties props)
voidstart()
voidstop()

Method Detail

getName

public String getName()

handleConnectOK

public void handleConnectOK()

sendGetMembersRequest

public void sendGetMembersRequest()

setProperties

public boolean setProperties(Properties props)

start

public void start()

stop

public void stop()
Copyright ? 1998-2005 Bela Ban. All Rights Reserved.