org.jgroups.protocols
Class WANPING

java.lang.Object
  extended byorg.jgroups.stack.Protocol
      extended byorg.jgroups.protocols.Discovery
          extended byorg.jgroups.protocols.WANPING

public class WANPING
extends Discovery

Similar to TCPPING, except that the initial host list is specified as a list of logical pipe names.


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
 
Constructor Summary
WANPING()
           
 
Method Summary
 java.lang.String getName()
           
 void sendGetMembersRequest()
           
 boolean setProperties(java.util.Properties props)
          sets the properties of the PING protocol.
 
Methods inherited from class org.jgroups.protocols.Discovery
down, findInitialMembers, findInitialMembersAsString, getNumberOfDiscoveryRequestsSent, getNumInitialMembers, getNumPingRequests, getTimeout, handleConnect, handleConnectOK, handleDisconnect, localAddressSet, makeView, providedUpServices, resetStats, setNumInitialMembers, setNumPingRequests, setTimeout, start, stop, up
 
Methods inherited from class org.jgroups.stack.Protocol
destroy, downThreadEnabled, dumpStats, enableStats, getDownProtocol, getDownQueue, getProperties, getUpProtocol, getUpQueue, handleSpecialDownEvent, init, isTrace, isWarn, passDown, passUp, printStats, providedDownServices, receiveDownEvent, receiveUpEvent, requiredDownServices, requiredUpServices, setDownProtocol, setObserver, setPropertiesInternal, setProtocolStack, setTrace, setUpProtocol, setWarn, startDownHandler, startUpHandler, statsEnabled, stopInternal, upThreadEnabled
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

WANPING

public WANPING()
Method Detail

getName

public java.lang.String getName()
Specified by:
getName in class Protocol

setProperties

public boolean setProperties(java.util.Properties props)
Description copied from class: Discovery
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 class 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

sendGetMembersRequest

public void sendGetMembersRequest()
Specified by:
sendGetMembersRequest in class Discovery


Copyright ? 1998-2005 Bela Ban. All Rights Reserved.