Distributed Peer-to-Peer Web Search Engine and Intranet Search Appliance
Java decentralizedintranet-searchintranet-search-enginep2pp2p-networkprivacyprivacy-protectionsearch-enginesearchenginewebweb-search-enginewebsearchwebseearch-engine
*) plasmaCrawlLoader shutdown problem fixed (hopefully)
theli65fc650109ae
diff --git a/source/de/anomic/plasma/plasmaCrawlLoader.java b/source/de/anomic/plasma/plasmaCrawlLoader.javaindex 803564a7b..d856b3eec 100644--- a/source/de/anomic/plasma/plasmaCrawlLoader.java+++ b/source/de/anomic/plasma/plasmaCrawlLoader.java@@ -124,6 +124,21 @@ public final class plasmaCrawlLoader extends Thread {// start the crawl loaderthis.start();}++ public void close() {+ try {+ // setting the stop flag to true+ this.stopped = true;++ // interrupting the plasmaCrawlLoader+ this.interrupt();++ // waiting for the thread to finish ...+ this.join();+ } catch (Exception e) {+ // we where interrupted while waiting for the crawlLoader Thread to finish+ }+ }public ThreadGroup threadStatus() {return this.theThreadGroup;diff --git a/source/de/anomic/plasma/plasmaSwitchboard.java b/source/de/anomic/plasma/plasmaSwitchboard.javaindex d49bd7197..ada1af810 100644--- a/source/de/anomic/plasma/plasmaSwitchboard.java+++ b/source/de/anomic/plasma/plasmaSwitchboard.java@@ -373,6 +373,7 @@ public class plasmaSwitchboard extends serverAbstractSwitch implements serverSwiwordIndex.close(waitingBoundSeconds);log.logSystem("SWITCHBOARD SHUTDOWN STEP 3: sending termination signal to database manager");try {+ cacheLoader.close();wikiDB.close();messageDB.close();facilityDB.close();@@ -380,7 +381,7 @@ public class plasmaSwitchboard extends serverAbstractSwitch implements serverSwinoticeURL.close();errorURL.close();profiles.close();- parser.close();+ parser.close();cacheManager.close();} catch (IOException e) {}log.logSystem("SWITCHBOARD SHUTDOWN TERMINATED");diff --git a/yacy.parser b/yacy.parserindex 51441db29..eea29b5ce 100644--- a/yacy.parser+++ b/yacy.parser@@ -1 +1,2 @@-application/pdf=de.anomic.plasma.parser.pdf.pdfParser\ No newline at end of file+application/pdf=de.anomic.plasma.parser.pdf.pdfParser+application/msword=de.anomic.plasma.parser.doc.docParser\ No newline at end of file