public class DnsServer extends DirectoryBackedService
transports
Constructor and Description |
---|
DnsServer()
Creates a new instance of DnsConfiguration.
|
Modifier and Type | Method and Description |
---|---|
void |
start()
Starts this ProtocolService which binds acceptors on the protocol port.
|
void |
stop()
Stops this ProtocolService which unbinds acceptors on the protocol port.
|
String |
toString() |
getDirectoryService, getSearchBaseDn, isCatelogBased, setCatelogBased, setDirectoryService, setSearchBaseDn
addTransports, getDatagramAcceptor, getServiceId, getServiceName, getSocketAcceptor, getTransports, isEnabled, isStarted, setEnabled, setServiceId, setServiceName, setStarted, setTransports
public DnsServer()
public void start() throws IOException
ProtocolService
IOException
- if we cannot bind to the specified portspublic void stop()
ProtocolService
public String toString()
toString
in class Object
Object.toString()
Copyright © 2003–2020 The Apache Software Foundation. All rights reserved.