javax.jmdns.impl.tasks
Class Prober

java.lang.Object
  extended by java.util.TimerTask
      extended by javax.jmdns.impl.tasks.DNSTask
          extended by javax.jmdns.impl.tasks.Prober
All Implemented Interfaces:
java.lang.Runnable

public class Prober
extends DNSTask

The Prober sends three consecutive probes for all service infos that needs probing as well as for the host name. The state of each service info of the host name is advanced, when a probe has been sent for it. When the prober has run three times, it launches an Announcer.

If a conflict during probes occurs, the affected service infos (and affected host name) are taken away from the prober. This eventually causes the prober tho cancel itself.


Field Summary
 
Fields inherited from class javax.jmdns.impl.tasks.DNSTask
_jmDNSImpl
 
Constructor Summary
Prober(JmDNSImpl jmDNSImpl)
           
 
Method Summary
 boolean cancel()
           
 void run()
           
 void start(java.util.Timer timer)
           
 
Methods inherited from class java.util.TimerTask
scheduledExecutionTime
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

Prober

public Prober(JmDNSImpl jmDNSImpl)
Method Detail

start

public void start(java.util.Timer timer)

cancel

public boolean cancel()
Overrides:
cancel in class java.util.TimerTask

run

public void run()
Specified by:
run in interface java.lang.Runnable
Specified by:
run in class java.util.TimerTask