Package org.apache.nutch.hostdb
Class ResolverThread
- java.lang.Object
-
- org.apache.nutch.hostdb.ResolverThread
-
-
Field Summary
Fields Modifier and Type Field Description protected Reducer.Context
context
protected HostDatum
datum
protected String
host
protected Text
hostText
protected int
purgeFailedHostsThreshold
-
Constructor Summary
Constructors Constructor Description ResolverThread(String host, HostDatum datum, Reducer.Context context, int purgeFailedHostsThreshold)
Overloaded constructor.
-
-
-
Field Detail
-
host
protected String host
-
datum
protected HostDatum datum
-
hostText
protected Text hostText
-
context
protected Reducer.Context context
-
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 lookupdatum
- accompanying host informationcontext
-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
-
-