|
|||||||||
| 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 java.lang.String |
getName()
Return this task name. |
abstract void |
start(java.util.Timer timer)
Start this task. |
java.lang.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(java.util.Timer timer)
timer - task timer.public abstract java.lang.String getName()
public java.lang.String toString()
toString in class java.lang.Object
public DNSOutgoing addQuestion(DNSOutgoing out,
DNSQuestion rec)
throws java.io.IOException
out - outgoing messagerec - DNS question
java.io.IOException
public DNSOutgoing addAnswer(DNSOutgoing out,
DNSIncoming in,
DNSRecord rec)
throws java.io.IOException
out - outgoing messagein - incoming requestrec - DNS record answer
java.io.IOException
public DNSOutgoing addAnswer(DNSOutgoing out,
DNSRecord rec,
long now)
throws java.io.IOException
out - outgoing messagerec - DNS record answernow -
java.io.IOException
public DNSOutgoing addAuthoritativeAnswer(DNSOutgoing out,
DNSRecord rec)
throws java.io.IOException
out - outgoing messagerec - DNS record answer
java.io.IOException
public DNSOutgoing addAdditionalAnswer(DNSOutgoing out,
DNSIncoming in,
DNSRecord rec)
throws java.io.IOException
out - outgoing messagein - incoming requestrec - DNS record answer
java.io.IOException
|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||