|
JmDNS 3.4.1 | |||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES All Classes | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectjava.util.TimerTask
javax.jmdns.impl.tasks.DNSTask
javax.jmdns.impl.tasks.resolver.DNSResolverTask
javax.jmdns.impl.tasks.resolver.ServiceResolver
public class ServiceResolver
The ServiceResolver queries three times consecutively for services of a given type, and then removes itself from the timer.
The ServiceResolver will run only if JmDNS is in state ANNOUNCED. REMIND: Prevent having multiple service resolvers for the same type in the timer queue.
Field Summary |
---|
Fields inherited from class javax.jmdns.impl.tasks.resolver.DNSResolverTask |
---|
_count |
Constructor Summary | |
---|---|
ServiceResolver(JmDNSImpl jmDNSImpl,
String type)
|
Method Summary | |
---|---|
protected DNSOutgoing |
addAnswers(DNSOutgoing out)
Overridden by subclasses to add questions to the message. Note: Because of message size limitation the returned message may be different than the message parameter. |
protected DNSOutgoing |
addQuestions(DNSOutgoing out)
Overridden by subclasses to add questions to the message. Note: Because of message size limitation the returned message may be different than the message parameter. |
protected String |
description()
Returns a description of the resolver for debugging |
String |
getName()
Return this task name. |
Methods inherited from class javax.jmdns.impl.tasks.resolver.DNSResolverTask |
---|
run, start, toString |
Methods inherited from class javax.jmdns.impl.tasks.DNSTask |
---|
addAdditionalAnswer, addAnswer, addAnswer, addAuthoritativeAnswer, addQuestion, getDns |
Methods inherited from class java.util.TimerTask |
---|
cancel, scheduledExecutionTime |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
Constructor Detail |
---|
public ServiceResolver(JmDNSImpl jmDNSImpl, String type)
Method Detail |
---|
public String getName()
DNSTask
getName
in class DNSTask
protected DNSOutgoing addAnswers(DNSOutgoing out) throws IOException
DNSResolverTask
addAnswers
in class DNSResolverTask
out
- outgoing message
IOException
protected DNSOutgoing addQuestions(DNSOutgoing out) throws IOException
DNSResolverTask
addQuestions
in class DNSResolverTask
out
- outgoing message
IOException
protected String description()
DNSResolverTask
description
in class DNSResolverTask
|
Last updated 2011-08-25 12:40 | |||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES All Classes | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |