|
JmDNS 3.4.1 | |||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectjava.util.TimerTask
javax.jmdns.impl.tasks.DNSTask
public abstract class DNSTask
This is the root class for all task scheduled by the timer in JmDNS.
| Constructor Summary | |
|---|---|
protected |
DNSTask(JmDNSImpl jmDNSImpl)
|
| Method Summary | |
|---|---|
DNSOutgoing |
addAdditionalAnswer(DNSOutgoing out,
DNSIncoming in,
DNSRecord rec)
Add an additional answer to the record. |
DNSOutgoing |
addAnswer(DNSOutgoing out,
DNSIncoming in,
DNSRecord rec)
Add an answer if it is not suppressed. |
DNSOutgoing |
addAnswer(DNSOutgoing out,
DNSRecord rec,
long now)
Add an answer to the message. |
DNSOutgoing |
addAuthoritativeAnswer(DNSOutgoing out,
DNSRecord rec)
Add an authoritative answer to the message. |
DNSOutgoing |
addQuestion(DNSOutgoing out,
DNSQuestion rec)
Add a question to the message. |
JmDNSImpl |
getDns()
Return the DNS associated with this task. |
abstract String |
getName()
Return this task name. |
abstract void |
start(Timer timer)
Start this task. |
String |
toString()
|
| Methods inherited from class java.util.TimerTask |
|---|
cancel, run, scheduledExecutionTime |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
| Constructor Detail |
|---|
protected DNSTask(JmDNSImpl jmDNSImpl)
jmDNSImpl - | Method Detail |
|---|
public JmDNSImpl getDns()
public abstract void start(Timer timer)
timer - task timer.public abstract String getName()
public String toString()
toString in class Object
public DNSOutgoing addQuestion(DNSOutgoing out,
DNSQuestion rec)
throws IOException
out - outgoing messagerec - DNS question
IOException
public DNSOutgoing addAnswer(DNSOutgoing out,
DNSIncoming in,
DNSRecord rec)
throws IOException
out - outgoing messagein - incoming requestrec - DNS record answer
IOException
public DNSOutgoing addAnswer(DNSOutgoing out,
DNSRecord rec,
long now)
throws IOException
out - outgoing messagerec - DNS record answernow -
IOException
public DNSOutgoing addAuthoritativeAnswer(DNSOutgoing out,
DNSRecord rec)
throws IOException
out - outgoing messagerec - DNS record answer
IOException
public DNSOutgoing addAdditionalAnswer(DNSOutgoing out,
DNSIncoming in,
DNSRecord rec)
throws IOException
out - outgoing messagein - incoming requestrec - DNS record answer
IOException
|
Last updated 2011-08-25 12:40 | |||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||