*) 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

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

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

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