Distributed Peer-to-Peer Web Search Engine and Intranet Search Appliance
Java decentralizedintranet-searchintranet-search-enginep2pp2p-networkprivacyprivacy-protectionsearch-enginesearchenginewebweb-search-enginewebsearchwebseearch-engine
resume paused crawls on startup; user expects that restarts 'heal' everything
Michael Peter Christena20941c067f8
diff --git a/source/net/yacy/search/Switchboard.java b/source/net/yacy/search/Switchboard.javaindex ab6da835f..5bf873240 100644--- a/source/net/yacy/search/Switchboard.java+++ b/source/net/yacy/search/Switchboard.java@@ -784,34 +784,16 @@ public final class Switchboard extends serverSwitch {getConfigInt("minimumLocalDelta", this.crawlQueues.noticeURL.getMinimumLocalDelta()),getConfigInt("minimumGlobalDelta", this.crawlQueues.noticeURL.getMinimumGlobalDelta()));- /*- * Creating sync objects and loading status for the crawl jobs- * a) local crawl- * b) remote triggered crawl- * c) global crawl trigger- */- this.crawlJobsStatus.put(- SwitchboardConstants.CRAWLJOB_LOCAL_CRAWL,- new Object[] {- new Object(),- Boolean.valueOf(getConfig(SwitchboardConstants.CRAWLJOB_LOCAL_CRAWL + "_isPaused", "false"))- });- this.crawlJobsStatus.put(- SwitchboardConstants.CRAWLJOB_REMOTE_TRIGGERED_CRAWL,- new Object[] {- new Object(),- Boolean.valueOf(getConfig(- SwitchboardConstants.CRAWLJOB_REMOTE_TRIGGERED_CRAWL + "_isPaused",- "false"))- });- this.crawlJobsStatus.put(- SwitchboardConstants.CRAWLJOB_REMOTE_CRAWL_LOADER,- new Object[] {- new Object(),- Boolean.valueOf(getConfig(- SwitchboardConstants.CRAWLJOB_REMOTE_CRAWL_LOADER + "_isPaused",- "false"))- });+ // on startup, resume all crawls+ setConfig(SwitchboardConstants.CRAWLJOB_LOCAL_CRAWL + "_isPaused", "false");+ setConfig(SwitchboardConstants.CRAWLJOB_LOCAL_CRAWL + "_isPaused_cause", "");+ setConfig(SwitchboardConstants.CRAWLJOB_REMOTE_TRIGGERED_CRAWL + "_isPaused", "false");+ setConfig(SwitchboardConstants.CRAWLJOB_REMOTE_TRIGGERED_CRAWL + "_isPaused_cause", "");+ setConfig(SwitchboardConstants.CRAWLJOB_REMOTE_CRAWL_LOADER + "_isPaused", "false");+ setConfig(SwitchboardConstants.CRAWLJOB_REMOTE_CRAWL_LOADER + "_isPaused_cause", "");+ this.crawlJobsStatus.put(SwitchboardConstants.CRAWLJOB_LOCAL_CRAWL, new Object[] {new Object(), false});+ this.crawlJobsStatus.put(SwitchboardConstants.CRAWLJOB_REMOTE_TRIGGERED_CRAWL, new Object[] {new Object(), false});+ this.crawlJobsStatus.put(SwitchboardConstants.CRAWLJOB_REMOTE_CRAWL_LOADER, new Object[] {new Object(), false});// init cookie-Monitorthis.log.logConfig("Starting Cookie Monitor");