Public Member Functions | |
boolean | cancel () |
String | getName () |
String | getTaskDescription () |
Prober (JmDNSImpl jmDNSImpl) | |
void | start (Timer timer) |
String | toString () |
Protected Member Functions | |
void | advanceTask () |
DNSOutgoing | buildOutgoingForDNS (DNSOutgoing out) throws IOException |
DNSOutgoing | buildOutgoingForInfo (ServiceInfoImpl info, DNSOutgoing out) throws IOException |
boolean | checkRunCondition () |
DNSOutgoing | createOugoing () |
void | recoverTask (Throwable e) |
Static Package Attributes | |
static Logger | logger = Logger.getLogger(Prober.class.getName()) |
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 to cancel itself.
Definition at line 27 of file Prober.java.
javax.jmdns.impl.tasks.state.Prober.Prober | ( | JmDNSImpl | jmDNSImpl | ) | [inline] |
Definition at line 30 of file Prober.java.
void javax.jmdns.impl.tasks.state.Prober.advanceTask | ( | ) | [inline, protected, virtual] |
Implements javax.jmdns.impl.tasks.state.DNSStateTask.
Definition at line 152 of file Prober.java.
DNSOutgoing javax.jmdns.impl.tasks.state.Prober.buildOutgoingForDNS | ( | DNSOutgoing | out | ) | throws IOException [inline, protected, virtual] |
Implements javax.jmdns.impl.tasks.state.DNSStateTask.
Definition at line 115 of file Prober.java.
DNSOutgoing javax.jmdns.impl.tasks.state.Prober.buildOutgoingForInfo | ( | ServiceInfoImpl | info, |
DNSOutgoing | out | ||
) | throws IOException [inline, protected, virtual] |
Implements javax.jmdns.impl.tasks.state.DNSStateTask.
Definition at line 129 of file Prober.java.
boolean javax.jmdns.impl.tasks.state.Prober.cancel | ( | ) | [inline] |
Definition at line 77 of file Prober.java.
boolean javax.jmdns.impl.tasks.state.Prober.checkRunCondition | ( | ) | [inline, protected, virtual] |
Implements javax.jmdns.impl.tasks.state.DNSStateTask.
Definition at line 97 of file Prober.java.
DNSOutgoing javax.jmdns.impl.tasks.state.Prober.createOugoing | ( | ) | [inline, protected, virtual] |
Implements javax.jmdns.impl.tasks.state.DNSStateTask.
Definition at line 106 of file Prober.java.
String javax.jmdns.impl.tasks.state.Prober.getName | ( | ) | [inline, virtual] |
Return this task name.
Implements javax.jmdns.impl.tasks.DNSTask.
Definition at line 42 of file Prober.java.
String javax.jmdns.impl.tasks.state.Prober.getTaskDescription | ( | ) | [inline, virtual] |
Implements javax.jmdns.impl.tasks.state.DNSStateTask.
Definition at line 88 of file Prober.java.
void javax.jmdns.impl.tasks.state.Prober.recoverTask | ( | Throwable | e | ) | [inline, protected, virtual] |
Implements javax.jmdns.impl.tasks.state.DNSStateTask.
Definition at line 143 of file Prober.java.
void javax.jmdns.impl.tasks.state.Prober.start | ( | Timer | timer | ) | [inline, virtual] |
Start this task.
timer | task timer. |
Implements javax.jmdns.impl.tasks.DNSTask.
Definition at line 60 of file Prober.java.
String javax.jmdns.impl.tasks.state.Prober.toString | ( | ) | [inline] |
Reimplemented from javax.jmdns.impl.tasks.DNSTask.
Definition at line 51 of file Prober.java.
Logger javax.jmdns.impl.tasks.state.Prober.logger = Logger.getLogger(Prober.class.getName()) [static, package] |
Definition at line 28 of file Prober.java.