public class DNSServer extends Object implements DNSServerMBean
DNSStore to lookup entries.
To run a server, an instance of a server is created followed by calling the start() method.
| Constructor and Description |
|---|
DNSServer(DNSStore store,
DNSServerSettings settings)
Create a new DNSServer
|
| Modifier and Type | Method and Description |
|---|---|
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.
|
@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.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 DNSServerMBeanCopyright © 2010-2015 The Direct Project. All Rights Reserved.