From b70de495a0df2e7111c460e17925fb2dbe3b0499 Mon Sep 17 00:00:00 2001 From: theli Date: Thu, 25 Aug 2005 09:51:24 +0000 Subject: [PATCH] *) Remembering Crawler-isPaused setting git-svn-id: https://svn.berlios.de/svnroot/repos/yacy/trunk@586 6c8d7289-2bf4-0310-a012-ef5d649a1542 --- source/de/anomic/plasma/plasmaSwitchboard.java | 3 +++ yacy.init | 1 + 2 files changed, 4 insertions(+) diff --git a/source/de/anomic/plasma/plasmaSwitchboard.java b/source/de/anomic/plasma/plasmaSwitchboard.java index d8e9d9b83..070d0190a 100644 --- a/source/de/anomic/plasma/plasmaSwitchboard.java +++ b/source/de/anomic/plasma/plasmaSwitchboard.java @@ -298,6 +298,7 @@ public final class plasmaSwitchboard extends serverAbstractSwitch implements ser catch (NumberFormatException e) { remoteport = 3128; } crawlSlots = Integer.parseInt(getConfig("crawler.MaxActiveThreads", "10")); + this.crawlingIsPaused = Boolean.valueOf(getConfig("crawler.isPaused", "false")).booleanValue(); plasmaCrawlLoader.switchboard = this; this.cacheLoader = new plasmaCrawlLoader( this.cacheManager, @@ -656,6 +657,7 @@ public final class plasmaSwitchboard extends serverAbstractSwitch implements ser synchronized(this.crawlingPausedSync) { this.crawlingIsPaused = true; } + setConfig("crawler.isPaused", "true"); } /** @@ -668,6 +670,7 @@ public final class plasmaSwitchboard extends serverAbstractSwitch implements ser this.crawlingPausedSync.notifyAll(); } } + setConfig("crawler.isPaused", "false"); } /** diff --git a/yacy.init b/yacy.init index a791f00eb..75484fba0 100644 --- a/yacy.init +++ b/yacy.init @@ -510,6 +510,7 @@ onlineCautionDelay=30000 crawler.acceptLanguage=en-us,en;q=0.5 crawler.acceptCharset=ISO-8859-1,utf-8;q=0.7,*;q=0.7 crawler.clientTimeout=9000 +crawler.isPaused=false # maximum number of crawler threads crawler.MaxActiveThreads = 10