From 8c0b539331208344d2e9cd187e4d201ff718e0c2 Mon Sep 17 00:00:00 2001 From: szznax Date: Thu, 21 May 2009 23:39:50 +0000 Subject: [PATCH] minor improvement * CrawlURI.java removed static MAX_OUTLINKS in favor of ExtractorParameters.getMaxOutlinks() --- .../java/org/archive/crawler/datamodel/CrawlURI.java | 11 +---------- 1 file changed, 1 insertion(+), 10 deletions(-) diff --git a/engine/src/main/java/org/archive/crawler/datamodel/CrawlURI.java b/engine/src/main/java/org/archive/crawler/datamodel/CrawlURI.java index d02ff61b..e7a4632a 100644 --- a/engine/src/main/java/org/archive/crawler/datamodel/CrawlURI.java +++ b/engine/src/main/java/org/archive/crawler/datamodel/CrawlURI.java @@ -176,15 +176,7 @@ implements ProcessorURI, MultiReporter, Serializable, OverlayContext { // Once a link extractor has finished processing this curi this will be // set as true transient private boolean linkExtractorFinished = false; - - /** - * Protection against outlink overflow. - * Change value by setting alternate maximum in heritrix.properties. - */ - public static final int MAX_OUTLINKS = Integer. - parseInt(System.getProperty(CrawlURI.class.getName() + ".maxOutLinks", - "6000")); - + transient private int discardedOutlinks = 0; //////////////////////////////////////////////////////////////////// @@ -1758,7 +1750,6 @@ implements ProcessorURI, MultiReporter, Serializable, OverlayContext { return overlayNames != null; } - @SuppressWarnings("unchecked") public LinkedList getOverlayNames() { if(overlayNames == null) { overlayNames = new LinkedList();