Prev Class | Next Class | Frames | No Frames |
Summary: Nested | Field | Method | Constr | Detail: Nested | Field | Method | Constr |
java.lang.Object
org.jgroups.stack.Protocol
org.jgroups.protocols.Discovery
org.jgroups.protocols.TCPPING
public class TCPPING
extends Discovery
Field Summary |
Fields inherited from class org.jgroups.stack.Protocol | |
down_handler , down_prot , down_queue , down_thread , down_thread_prio , log , observer , props , stack , stats , trace , up_handler , up_prot , up_queue , up_thread , up_thread_prio , warn |
Method Summary | |
String |
|
void |
|
void | |
boolean |
|
Methods inherited from class org.jgroups.protocols.Discovery | |
down , findInitialMembers , findInitialMembersAsString , getNumInitialMembers , getNumPingRequests , getNumberOfDiscoveryRequestsSent , getTimeout , handleConnect , handleConnectOK , handleDisconnect , localAddressSet , makeView , providedUpServices , resetStats , sendGetMembersRequest , setNumInitialMembers , setNumPingRequests , setProperties , setTimeout , start , stop , up |
Methods inherited from class org.jgroups.stack.Protocol | |
destroy , down , downThreadEnabled , dumpStats , enableStats , getDownProtocol , getDownQueue , getName , getProperties , getUpProtocol , getUpQueue , handleSpecialDownEvent , init , isTrace , isWarn , passDown , passUp , printStats , providedDownServices , providedUpServices , receiveDownEvent , receiveUpEvent , requiredDownServices , requiredUpServices , resetStats , setDownProtocol , setObserver , setProperties , setPropertiesInternal , setProtocolStack , setTrace , setUpProtocol , setWarn , start , startDownHandler , startUpHandler , statsEnabled , stop , stopInternal , up , upThreadEnabled |
public void localAddressSet(Address addr)
Called after local_addr was set
- Overrides:
- localAddressSet in interface Discovery
public void sendGetMembersRequest()
- Overrides:
- sendGetMembersRequest in interface Discovery
public boolean setProperties(Properties props)
sets the properties of the PING protocol. The following properties are available property: timeout - the timeout (ms) to wait for the initial members, default is 3000=3 secs property: num_initial_members - the minimum number of initial members for a FIND_INITAL_MBRS, default is 2
- Overrides:
- setProperties in interface Discovery
- Parameters:
props
- - a property set
- Returns:
- returns true if all properties were parsed properly returns false if there are unrecnogized properties in the property set