Package org.apache.nutch.hostdb
Class ResolverThread
java.lang.Object
org.apache.nutch.hostdb.ResolverThread
- All Implemented Interfaces:
Runnable
Simple runnable that performs DNS lookup for a single host.
-
Field Summary
FieldsModifier and TypeFieldDescriptionprotected Reducer.Contextprotected HostDatumprotected Stringprotected Textprotected int -
Constructor Summary
ConstructorsConstructorDescriptionResolverThread(String host, HostDatum datum, Reducer.Context context, int purgeFailedHostsThreshold) Overloaded constructor. -
Method Summary
-
Field Details
-
host
-
datum
-
hostText
-
context
-
purgeFailedHostsThreshold
protected int purgeFailedHostsThreshold
-
-
Constructor Details
-
ResolverThread
public ResolverThread(String host, HostDatum datum, Reducer.Context context, int purgeFailedHostsThreshold) Overloaded constructor.- Parameters:
host- name of the host to lookupdatum- accompanying host informationcontext-Reducer.Contextfor 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 Details