org.jgroups.protocols
Class FD_ICMP.PingMonitor

java.lang.Object
  extended by org.jgroups.protocols.FD.Monitor
      extended by org.jgroups.protocols.FD_ICMP.PingMonitor
All Implemented Interfaces:
TimeScheduler.Task
Enclosing class:
FD_ICMP

protected class FD_ICMP.PingMonitor
extends FD.Monitor

Runs InetAddress.isReachable(). Each time the command fails, we increment num_tries. If num_tries > max_tries, we emit a SUSPECT message. If ping_dest changes, or we do receive traffic from ping_dest, we reset num_tries to 0.


Constructor Summary
protected FD_ICMP.PingMonitor()
           
 
Method Summary
 void run()
          Execute the task
 
Methods inherited from class org.jgroups.protocols.FD.Monitor
cancelled, nextInterval, stop, toString
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Constructor Detail

FD_ICMP.PingMonitor

protected FD_ICMP.PingMonitor()
Method Detail

run

public void run()
Description copied from interface: TimeScheduler.Task
Execute the task

Specified by:
run in interface TimeScheduler.Task
Overrides:
run in class FD.Monitor


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