org.jgroups.protocols
Class FD_PING

java.lang.Object
  extended by org.jgroups.stack.Protocol
      extended by org.jgroups.protocols.FD
          extended by org.jgroups.protocols.FD_PING

public class FD_PING
extends FD

Protocol which uses an executable (e.g. /sbin/ping, or a script) to check whether a given host is up or not, taking 1 argument; the host name of the host to be pinged. Property 'cmd' determines the program to be executed (use a fully qualified name if the program is not on the path).

Version:
$Id: FD_PING.java,v 1.4.4.1 2008/01/22 10:01:20 belaban Exp $
Author:
Bela Ban

Nested Class Summary
protected static class FD_PING.Pinger
           
protected  class FD_PING.PingMonitor
          Executes the ping command.
 
Nested classes/interfaces inherited from class org.jgroups.protocols.FD
FD.Broadcaster, FD.BroadcastTask, FD.FdHeader, FD.Monitor
 
Field Summary
 
Fields inherited from class org.jgroups.protocols.FD
bcast_task, lock, num_heartbeats, num_suspect_events
 
Fields inherited from class org.jgroups.stack.Protocol
down_prot, log, props, stack, stats, up_prot
 
Constructor Summary
FD_PING()
           
 
Method Summary
protected  FD.Monitor createMonitor()
           
 java.lang.String getName()
           
 boolean setProperties(java.util.Properties props)
          Configures the protocol initially.
 
Methods inherited from class org.jgroups.protocols.FD
down, getCurrentNumTries, getLocalAddress, getMaxTries, getMembers, getNumberOfHeartbeatsSent, getNumSuspectEventsGenerated, getPingableMembers, getPingDest, getTimeout, init, isShun, printSuspectHistory, resetStats, setMaxTries, setShun, setTimeout, stop, up
 
Methods inherited from class org.jgroups.stack.Protocol
destroy, downThreadEnabled, dumpStats, enableStats, getDownProtocol, getProperties, getProtocolStack, getThreadFactory, getTransport, getUpProtocol, printStats, providedDownServices, providedUpServices, requiredDownServices, requiredUpServices, setDownProtocol, setPropertiesInternal, setProtocolStack, setUpProtocol, start, statsEnabled, upThreadEnabled
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

FD_PING

public FD_PING()
Method Detail

getName

public java.lang.String getName()
Overrides:
getName in class FD

setProperties

public boolean setProperties(java.util.Properties props)
Description copied from class: Protocol
Configures the protocol initially. A configuration string consists of name=value items, separated by a ';' (semicolon), e.g.:
 "loopback=false;unicast_inport=4444"
 

Overrides:
setProperties in class FD

createMonitor

protected FD.Monitor createMonitor()


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