org.apache.nutch.hostdb

## Class ResolverThread

- java.lang.Object
- - org.apache.nutch.hostdb.ResolverThread

- All Implemented Interfaces:
    java.lang.Runnable

      public class ResolverThread
      extends java.lang.Object
      implements java.lang.Runnable

  Simple runnable that performs DNS lookup for a single host.

- - ### Field Summary

    Fields
    Modifier and Type | Field and Description
    --- | ---
    `protected Reducer.Context` | `context`
    `protected HostDatum` | `datum`
    `protected java.lang.String` | `host`
    `protected Text` | `hostText`
    `protected int` | `purgeFailedHostsThreshold`

  - ### Constructor Summary

    Constructors
    Constructor and Description
    `ResolverThread(java.lang.String host, HostDatum datum, Reducer.Context context, int purgeFailedHostsThreshold)` Constructor.

  - ### Method Summary

    All Methods Instance Methods Concrete Methods
    Modifier and Type | Method and Description
    --- | ---
    `void` | `run()`

    - ### Methods inherited from class java.lang.Object

      `clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait`

- - ### Field Detail

    - #### host

          protected java.lang.String host

    - #### datum

          protected HostDatum datum

    - #### hostText

          protected Text hostText

    - #### context

          protected Reducer.Context context

    - #### purgeFailedHostsThreshold

          protected int purgeFailedHostsThreshold

  - ### Constructor Detail

    - #### ResolverThread

          public ResolverThread(java.lang.String host,
                                HostDatum datum,
                                Reducer.Context context,
                                int purgeFailedHostsThreshold)

      Constructor.

  - ### Method Detail

    - #### run

          public void run()

      Specified by:
        `run` in interface `java.lang.Runnable`

Copyright © 2019 The Apache Software Foundation