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

    Nested Classes
    Modifier and Type
    Interface
    Description
    static class 
    Class to carry parameters for a new coordinator.
  • Method Summary

    Modifier and Type
    Method
    Description
    createQuery(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

      String createQuery(org.joda.time.YearMonth yearMonth)
      Creates the string used to query bigtable for DNS count information.
    • prepareForQuery

      void prepareForQuery(org.joda.time.YearMonth yearMonth) throws InterruptedException
      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, no RuntimeException wrapping).

      Throws:
      InterruptedException