|
||||||||||
| 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 | |
|---|---|
String |
getDNSStoreImplName()
Gets the fully qualified class name of the DNS store. |
CompositeData |
getServerSettings()
Gets the DNS server settings. |
void |
start()
Starts the DNS server by initializing and launching the TCP and UDP listeners. |
void |
startServer()
Initializes the DNS server socket listeners are begins accepting requests. |
void |
stop()
Stops the server and shuts down the TCP and UPD listeners. |
void |
stopServer()
Shutdown the DNS server socket listeners and stops accepting requests. |
| 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.public CompositeData getServerSettings()
getServerSettings in interface DNSServerMBeanpublic void startServer()
startServer in interface DNSServerMBeanpublic void stopServer()
stopServer in interface DNSServerMBeanpublic String getDNSStoreImplName()
getDNSStoreImplName in interface DNSServerMBean
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||