Package google.registry.reporting.icann
Interface DnsCountQueryCoordinator
- All Known Implementing Classes:
BasicDnsCountQueryCoordinator
public interface DnsCountQueryCoordinator
Methods for preparing and querying DNS statistics.
DNS systems may have different ways of providing this information, so it's useful to modularize this.
Derived classes must provide a constructor that accepts a
DnsCountQueryCoordinator.Params
. To override this,
define dnsCountQueryCoordinatorClass in your config file.
-
Nested Class Summary
Modifier and TypeInterfaceDescriptionstatic class
Class to carry parameters for a new coordinator. -
Method Summary
Modifier and TypeMethodDescriptioncreateQuery
(org.joda.time.YearMonth yearMonth) Creates the string used to query bigtable for DNS count information.void
prepareForQuery
(org.joda.time.YearMonth yearMonth) Do any necessary preparation for the DNS query.
-
Method Details
-
createQuery
Creates the string used to query bigtable for DNS count information. -
prepareForQuery
Do any necessary preparation for the DNS query.This potentially throws
InterruptedException
because some implementations use interruptible futures to prepare the query (and the correct thing to do with such exceptions is to handle them correctly or propagate them as-is, noRuntimeException
wrapping).- Throws:
InterruptedException
-