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, 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 static final java.lang.String name
public boolean setProperties(java.util.Properties props)
setProperties
in class Discovery
props
- - a property set containing only PING propertiespublic void stop()
Protocol
Channel.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)
Discovery
localAddressSet
in class Discovery
public void handleConnect()
handleConnect
in class Discovery
public void handleDisconnect()
handleDisconnect
in class Discovery
public void sendGetMembersRequest()
sendGetMembersRequest
in class Discovery
Copyright ? 1998-2006 Bela Ban. All Rights Reserved.