*) Remembering Crawler-isPaused setting

git-svn-id: https://svn.berlios.de/svnroot/repos/yacy/trunk@586 6c8d7289-2bf4-0310-a012-ef5d649a1542
pull/1/head
theli 20 years ago
parent 0d912a3de9
commit b70de495a0

@ -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");
}
/**

@ -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

Loading…
Cancel
Save