public class PING extends Discovery
The FIND_INITIAL_MBRS event will eventually be answered with a FIND_INITIAL_MBRS_OK event up the stack. The following properties are available property: gossip_host - if you are using GOSSIP then this defines the host of the GossipRouter, default is null property: gossip_port - if you are using GOSSIP then this defines the port of the GossipRouter, default is null
| Modifier and Type | Field and Description |
|---|---|
static java.lang.String |
name |
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 |
|---|
PING() |
| Modifier and Type | Method and Description |
|---|---|
java.lang.String |
getName() |
void |
handleConnect() |
void |
handleDisconnect() |
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.
|
void |
stop()
This method is called on a
Channel.disconnect(). |
down, findInitialMembers, findInitialMembersAsString, getNumberOfDiscoveryRequestsSent, getNumInitialMembers, getNumPingRequests, getTimeout, handleConnectOK, makeView, providedUpServices, resetStats, setNumInitialMembers, setNumPingRequests, setTimeout, start, updestroy, 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, upThreadEnabledpublic static final java.lang.String name
public boolean setProperties(java.util.Properties props)
setProperties in class Discoveryprops - - a property set containing only PING propertiespublic void stop()
ProtocolChannel.disconnect(). Stops work (e.g. by closing multicast socket).
Will be called from top to bottom. This means that at the time of the method invocation the
neighbor protocol below is still working. This method will replace the
STOP, STOP_OK, CLEANUP and CLEANUP_OK events. The ProtocolStack guarantees that
when this method is called all messages in the down queue will have been flushedpublic void localAddressSet(Address addr)
DiscoverylocalAddressSet in class Discoverypublic void handleConnect()
handleConnect in class Discoverypublic void handleDisconnect()
handleDisconnect in class Discoverypublic void sendGetMembersRequest()
sendGetMembersRequest in class DiscoveryCopyright ? 1998-2006 Bela Ban. All Rights Reserved.