Apache Nutch is an extensible and scalable web crawler
Renamed FetcherStatus to FetcherOutlinks for the new outlinks section of NUTCH-1184
Markus Jelsma2501c9ebb2dd
diff --git a/src/java/org/apache/nutch/fetcher/Fetcher.java b/src/java/org/apache/nutch/fetcher/Fetcher.javaindex d5558c0ed..20479cd39 100644--- a/src/java/org/apache/nutch/fetcher/Fetcher.java+++ b/src/java/org/apache/nutch/fetcher/Fetcher.java@@ -1039,7 +1039,7 @@ public class Fetcher extends Configured implements Tool,// Only process depth N outlinksif (maxOutlinkDepth > 0 && outlinkDepth < maxOutlinkDepth) {- reporter.incrCounter("FetcherStatus", "outlinks_detected", outlinks.size());+ reporter.incrCounter("FetcherOutlinks", "outlinks_detected", outlinks.size());// Counter to limit num outlinks to follow per pageint outlinkCounter = 0;@@ -1050,7 +1050,7 @@ public class Fetcher extends Configured implements Tool,// Walk over the outlinks and add as new FetchItem to the queuesIterator<String> iter = outlinks.iterator();while(iter.hasNext() && outlinkCounter < maxOutlinkDepthNumLinks) {- reporter.incrCounter("FetcherStatus", "outlinks_following", 1);+ reporter.incrCounter("FetcherOutlinks", "outlinks_following", 1);// Create new FetchItem with depth incrementedFetchItem fit = FetchItem.create(new Text(iter.next()), new CrawlDatum(CrawlDatum.STATUS_LINKED, interval), queueMode, outlinkDepth + 1);