public abstract class DNSTask
extends java.util.TimerTask
| Modifier | Constructor and Description |
|---|---|
protected |
DNSTask(JmDNSImpl jmDNSImpl) |
| Modifier and Type | Method and Description |
|---|---|
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() |
protected DNSTask(JmDNSImpl jmDNSImpl)
jmDNSImpl - 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.Objectpublic DNSOutgoing addQuestion(DNSOutgoing out, DNSQuestion rec) throws java.io.IOException
out - outgoing messagerec - DNS questionjava.io.IOExceptionpublic DNSOutgoing addAnswer(DNSOutgoing out, DNSIncoming in, DNSRecord rec) throws java.io.IOException
out - outgoing messagein - incoming requestrec - DNS record answerjava.io.IOExceptionpublic DNSOutgoing addAnswer(DNSOutgoing out, DNSRecord rec, long now) throws java.io.IOException
out - outgoing messagerec - DNS record answernow - java.io.IOExceptionpublic DNSOutgoing addAuthoritativeAnswer(DNSOutgoing out, DNSRecord rec) throws java.io.IOException
out - outgoing messagerec - DNS record answerjava.io.IOExceptionpublic DNSOutgoing addAdditionalAnswer(DNSOutgoing out, DNSIncoming in, DNSRecord rec) throws java.io.IOException
out - outgoing messagein - incoming requestrec - DNS record answerjava.io.IOException