org.objectweb.tribe.faultdetection
Class UDPPingThread

java.lang.Object
  extended byjava.lang.Thread
      extended byorg.objectweb.tribe.faultdetection.UDPPingThread
All Implemented Interfaces:
java.lang.Runnable

public class UDPPingThread
extends java.lang.Thread

This class defines a UDPPingThread. This defines a Ping thread that can be use and reuse to ping a target IpAddress

Version:
1.0
Author:
Nicolas Modrzyk

Field Summary
 
Fields inherited from class java.lang.Thread
MAX_PRIORITY, MIN_PRIORITY, NORM_PRIORITY
 
Constructor Summary
UDPPingThread(IpAddress target, IpAddress src, int timeout)
          Creates a new UDPPingThread object
 
Method Summary
 boolean isTargetAlive()
          Returns the alive value.
 void run()
           
 
Methods inherited from class java.lang.Thread
activeCount, checkAccess, countStackFrames, currentThread, destroy, dumpStack, enumerate, getContextClassLoader, getName, getPriority, getThreadGroup, holdsLock, interrupt, interrupted, isAlive, isDaemon, isInterrupted, join, join, join, resume, setContextClassLoader, setDaemon, setName, setPriority, sleep, sleep, start, stop, stop, suspend, toString, yield
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Constructor Detail

UDPPingThread

public UDPPingThread(IpAddress target,
                     IpAddress src,
                     int timeout)
              throws java.net.SocketException
Creates a new UDPPingThread object

Throws:
java.net.SocketException
Method Detail

run

public void run()
See Also:
Runnable.run()

isTargetAlive

public boolean isTargetAlive()
Returns the alive value.

Returns:
Returns the alive.


Copyright © 2004 - ObjectWeb Consortium - All Rights Reserved.