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.
Constructor | Description |
---|---|
TCPPING() |
Modifier and Type | Method | Description |
---|---|---|
java.util.List<Address> |
getInitialHosts() |
Returns the list of initial hosts as configured by the user via XML.
|
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, handleDisconnect, init, makeView, providedUpServices, resetStats, setNumInitialMembers, setNumPingRequests, setTimeout, start, stop, up
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
destroy, downThreadEnabled, dumpStats, enableStats, getDownProtocol, getProperties, getProtocolStack, getThreadFactory, getTransport, getUpProtocol, printStats, providedDownServices, requiredDownServices, requiredUpServices, setDownProtocol, setPropertiesInternal, setProtocolStack, setUpProtocol, statsEnabled, upThreadEnabled
public java.util.List<Address> getInitialHosts()
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-2008 Bela Ban. All Rights Reserved.