Package org.minidns.source
Class NetworkDataSourceWithAccounting
java.lang.Object
org.minidns.source.AbstractDnsDataSource
org.minidns.source.NetworkDataSource
org.minidns.source.NetworkDataSourceWithAccounting
- All Implemented Interfaces:
DnsDataSource
-
Nested Class Summary
Nested classes/interfaces inherited from class org.minidns.source.AbstractDnsDataSource
AbstractDnsDataSource.QueryMode
Nested classes/interfaces inherited from interface org.minidns.source.DnsDataSource
DnsDataSource.OnResponseCallback
-
Field Summary
Fields inherited from class org.minidns.source.NetworkDataSource
LOGGER
Fields inherited from class org.minidns.source.AbstractDnsDataSource
timeout, udpPayloadSize
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionfrom
(AbstractDnsClient client) getStats()
query
(DnsMessage message, InetAddress address, int port) protected DnsMessage
queryTcp
(DnsMessage message, InetAddress address, int port) protected DnsMessage
queryUdp
(DnsMessage message, InetAddress address, int port) Methods inherited from class org.minidns.source.NetworkDataSource
createDatagramSocket, createSocket
Methods inherited from class org.minidns.source.AbstractDnsDataSource
cacheResult, getQueryMode, getTimeout, getUdpPayloadSize, queryAsync, setQueryMode, setTimeout, setUdpPayloadSize
-
Constructor Details
-
NetworkDataSourceWithAccounting
public NetworkDataSourceWithAccounting()
-
-
Method Details
-
query
public StandardDnsQueryResult query(DnsMessage message, InetAddress address, int port) throws IOException - Specified by:
query
in interfaceDnsDataSource
- Overrides:
query
in classNetworkDataSource
- Throws:
IOException
-
queryUdp
- Overrides:
queryUdp
in classNetworkDataSource
- Throws:
IOException
-
queryTcp
- Overrides:
queryTcp
in classNetworkDataSource
- Throws:
IOException
-
getStats
-
from
-