Class ResolverThread

  • All Implemented Interfaces:
    Runnable

    public class ResolverThread
    extends Object
    implements Runnable
    Simple runnable that performs DNS lookup for a single host.
    • Field Detail

      • hostText

        protected Text hostText
      • purgeFailedHostsThreshold

        protected int purgeFailedHostsThreshold
    • Constructor Detail

      • ResolverThread

        public ResolverThread​(String host,
                              HostDatum datum,
                              Reducer.Context context,
                              int purgeFailedHostsThreshold)
        Overloaded constructor.
        Parameters:
        host - name of the host to lookup
        datum - accompanying host information
        context - Reducer.Context for writing custom counters and output.
        purgeFailedHostsThreshold - int value which marks the maximum failed DNS lookups before a given host is purged from the hostdb
    • Method Detail

      • run

        public void run()
        Specified by:
        run in interface Runnable