Package org.apache.nutch.hostdb
Class FetchOverdueCrawlDatumProcessor
java.lang.Object
org.apache.nutch.hostdb.FetchOverdueCrawlDatumProcessor
- All Implemented Interfaces:
CrawlDatumProcessor
Simple custom crawl datum processor that counts the number of records that
are overdue for fetching, e.g. new unfetched URLs that haven't been fetched
within two days.
-
Field Summary
FieldsModifier and TypeFieldDescriptionprotected final Configurationprotected longprotected longprotected long -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionvoidcount(CrawlDatum crawlDatum) Process a single crawl datum instance to aggregate custom counts.voidProcess the final host datum instance and store the aggregated custom counts in the HostDatum.
-
Field Details
-
conf
-
overDueTimeLimit
protected long overDueTimeLimit -
overDueTime
protected long overDueTime -
numOverDue
protected long numOverDue
-
-
Constructor Details
-
FetchOverdueCrawlDatumProcessor
-
-
Method Details
-
count
Description copied from interface:CrawlDatumProcessorProcess a single crawl datum instance to aggregate custom counts.- Specified by:
countin interfaceCrawlDatumProcessor- Parameters:
crawlDatum- CrawlDatum instance to count information from
-
finalize
Description copied from interface:CrawlDatumProcessorProcess the final host datum instance and store the aggregated custom counts in the HostDatum.- Specified by:
finalizein interfaceCrawlDatumProcessor- Parameters:
hostDatum- HostDatum instance to hold the aggregated custom counts
-