*) plasmaCrawlLoader shutdown problem fixed (hopefully)

git-svn-id: https://svn.berlios.de/svnroot/repos/yacy/trunk@59 6c8d7289-2bf4-0310-a012-ef5d649a1542
pull/1/head
theli 20 years ago
parent 19e69f0efd
commit 65fc650109

@ -125,6 +125,21 @@ public final class plasmaCrawlLoader extends Thread {
this.start(); 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() { public ThreadGroup threadStatus() {
return this.theThreadGroup; return this.theThreadGroup;
} }

@ -373,6 +373,7 @@ public class plasmaSwitchboard extends serverAbstractSwitch implements serverSwi
wordIndex.close(waitingBoundSeconds); wordIndex.close(waitingBoundSeconds);
log.logSystem("SWITCHBOARD SHUTDOWN STEP 3: sending termination signal to database manager"); log.logSystem("SWITCHBOARD SHUTDOWN STEP 3: sending termination signal to database manager");
try { try {
cacheLoader.close();
wikiDB.close(); wikiDB.close();
messageDB.close(); messageDB.close();
facilityDB.close(); facilityDB.close();

@ -1 +1,2 @@
application/pdf=de.anomic.plasma.parser.pdf.pdfParser application/pdf=de.anomic.plasma.parser.pdf.pdfParser
application/msword=de.anomic.plasma.parser.doc.docParser
Loading…
Cancel
Save