| Modifier and Type | Field and Description |
|---|---|
| private InetSocketAddress | |
| private final InternalLogLevel | |
| private final InternalLogger | |
| private final DnsQuestion |
| Access | Constructor and Description |
|---|---|
| pack-priv | LoggingDnsQueryLifecycleObserver(DnsQuestion question, InternalLogger logger, InternalLogLevel level)
|
| Modifier and Type | Method and Description |
|---|---|
| public void | queryCancelled(int
The number of queries remaining. queriesRemaining)Implements io. |
| public DnsQueryLifecycleObserver | queryCNAMEd(DnsQuestion
the question we would use if we issue a new query. cnameQuestion)Implements io. |
| public void | queryFailed(Throwable
The cause which for the failure. cause)Implements io.
|
| public DnsQueryLifecycleObserver | queryNoAnswer(DnsResponseCode
the unexpected response code. code)Implements io. DnsResponseCode#NXDOMAIN so we may try to query again.
|
| public DnsQueryLifecycleObserver | queryRedirected(List<InetSocketAddress>
The name servers the query has been redirected to. nameServers)Implements io. |
| public void | querySucceed()
Implements io. |
| public void | queryWritten(InetSocketAddress
The DNS server address which the query was sent to. dnsServerAddress, ChannelFuture The future which represents the status of the write operation for the DNS query. future)Implements io. |
| dnsServerAddress | back to summary |
|---|---|
| private InetSocketAddress dnsServerAddress | |
| level | back to summary |
|---|---|
| private final InternalLogLevel level | |
| logger | back to summary |
|---|---|
| private final InternalLogger logger | |
| question | back to summary |
|---|---|
| private final DnsQuestion question | |
| LoggingDnsQueryLifecycleObserver | back to summary |
|---|---|
| pack-priv LoggingDnsQueryLifecycleObserver(DnsQuestion question, InternalLogger logger, InternalLogLevel level) | |
| queryCancelled | back to summary |
|---|---|
| public void queryCancelled(int queriesRemaining) Implements io. Doc from io. The query may have been written but it was cancelled at some point.
| |
| queryCNAMEd | back to summary |
|---|---|
| public DnsQueryLifecycleObserver queryCNAMEd(DnsQuestion cnameQuestion) Implements io. Doc from io. The query returned a CNAME which we may attempt to follow with a new query.
Note that multiple queries may be encountering a CNAME. For example a if both
| |
| queryFailed | back to summary |
|---|---|
| public void queryFailed(Throwable cause) Implements io. Doc from io. The following criteria are possible:
| |
| queryNoAnswer | back to summary |
|---|---|
| public DnsQueryLifecycleObserver queryNoAnswer(DnsResponseCode code) Implements io. Doc from io. The response to the query didn't provide the expected response code, but it didn't return
| |
| queryRedirected | back to summary |
|---|---|
| public DnsQueryLifecycleObserver queryRedirected(List<InetSocketAddress> nameServers) Implements io. Doc from io. The query has been redirected to another list of DNS servers.
| |
| querySucceed | back to summary |
|---|---|
| public void querySucceed() Implements io. Doc from io. The query received the expected results.
| |
| queryWritten | back to summary |
|---|---|
| public void queryWritten(InetSocketAddress dnsServerAddress, ChannelFuture future) Implements io. Doc from io. The query has been written.
| |