public class TCPPING extends Discovery
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.
down_handler, down_prot, down_queue, down_thread, down_thread_prio, log, observer, props, stack, stats, up_handler, up_prot, up_queue, up_thread, up_thread_prio
Constructor and Description |
---|
TCPPING() |
Modifier and Type | Method and Description |
---|---|
java.lang.String |
getName() |
void |
localAddressSet(Address addr)
Called after local_addr was set
|
void |
sendGetMembersRequest() |
boolean |
setProperties(java.util.Properties props)
sets the properties of the PING protocol.
|
down, findInitialMembers, findInitialMembersAsString, getNumberOfDiscoveryRequestsSent, getNumInitialMembers, getNumPingRequests, getTimeout, handleConnect, handleConnectOK, handleDisconnect, makeView, providedUpServices, resetStats, setNumInitialMembers, setNumPingRequests, setTimeout, start, stop, up
destroy, downThreadEnabled, dumpStats, enableStats, getDownProtocol, getDownQueue, getProperties, getUpProtocol, getUpQueue, handleSpecialDownEvent, init, passDown, passUp, printStats, providedDownServices, receiveDownEvent, receiveUpEvent, requiredDownServices, requiredUpServices, setDownProtocol, setObserver, setPropertiesInternal, setProtocolStack, setUpProtocol, startDownHandler, startUpHandler, statsEnabled, stopInternal, upThreadEnabled
public boolean setProperties(java.util.Properties props)
Discovery
setProperties
in class Discovery
props
- - a property setpublic void localAddressSet(Address addr)
Discovery
localAddressSet
in class Discovery
public void sendGetMembersRequest()
sendGetMembersRequest
in class Discovery
Copyright ? 1998-2006 Bela Ban. All Rights Reserved.