|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectorg.nhindirect.dns.DNSServer
public class DNSServer
The DNS server creates the UDP and TCP responders and manages their life cycles. DNS queries are delegated
the responders which use the DNSStore to lookup entries.
To run a server, an instance of a server is created followed by calling the start() method.
| Constructor Summary | |
|---|---|
DNSServer(DNSStore store,
DNSServerSettings settings)
Create a new DNSServer |
|
| Method Summary | |
|---|---|
void |
start()
Starts the DNS server by initializing and launching the TCP and UDP listeners. |
void |
stop()
Stops the server and shuts down the TCP and UPD listeners. |
| Methods inherited from class java.lang.Object |
|---|
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
|---|
@Inject
public DNSServer(DNSStore store,
DNSServerSettings settings)
store - The storage medium of the DNS records.settings - DNS server specific settings such as UDP/TCP ports, IP bindings, and thread tuning parameters.| Method Detail |
|---|
public void start()
throws DNSException
DNSException - Thrown if the internal listeners could not be started.
public void stop()
throws DNSException
DNSException - Thrown if the internal listeners could not be stopped.
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||