Skip to content

Distributed Peer-to-Peer Web Search Engine and Intranet Search Appliance

*) plasmaCrawlLoader shutdown problem fixed (hopefully)

theli65fc650109ae
diff --git a/source/de/anomic/plasma/plasmaCrawlLoader.java b/source/de/anomic/plasma/plasmaCrawlLoader.java
index 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 loader
this.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.java
index 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 serverSwi
wordIndex.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 serverSwi
noticeURL.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.parser
index 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