Class Prober
java.lang.Object
java.util.TimerTask
javax.jmdns.impl.tasks.DNSTask
javax.jmdns.impl.tasks.state.DNSStateTask
javax.jmdns.impl.tasks.state.Prober
- All Implemented Interfaces:
Runnable
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.
-
Field Summary
Fields inherited from class DNSStateTask
logger -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionprotected voidprotected DNSOutgoingprotected DNSOutgoingbuildOutgoingForInfo(ServiceInfoImpl info, DNSOutgoing out) booleancancel()protected booleanprotected DNSOutgoinggetName()Return this task name.protected voidvoidStart this task.toString()Methods inherited from class DNSStateTask
advanceObjectsState, associate, defaultTTL, getTaskState, getTTL, removeAssociation, run, setDefaultTTL, setTaskStateMethods inherited from class DNSTask
addAdditionalAnswer, addAnswer, addAnswer, addAuthoritativeAnswer, addQuestion, getDnsMethods inherited from class TimerTask
scheduledExecutionTime
-
Constructor Details
-
Prober
-
-
Method Details
-
getName
-
toString
-
start
-
cancel
-
getTaskDescription
- Specified by:
getTaskDescriptionin classDNSStateTask
-
checkRunCondition
protected boolean checkRunCondition()- Specified by:
checkRunConditionin classDNSStateTask
-
createOugoing
- Specified by:
createOugoingin classDNSStateTask
-
buildOutgoingForDNS
- Specified by:
buildOutgoingForDNSin classDNSStateTask- Throws:
IOException
-
buildOutgoingForInfo
protected DNSOutgoing buildOutgoingForInfo(ServiceInfoImpl info, DNSOutgoing out) throws IOException - Specified by:
buildOutgoingForInfoin classDNSStateTask- Throws:
IOException
-
recoverTask
- Specified by:
recoverTaskin classDNSStateTask
-
advanceTask
protected void advanceTask()- Specified by:
advanceTaskin classDNSStateTask
-