*) 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 // start the crawl loader
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();
@ -380,7 +381,7 @@ public class plasmaSwitchboard extends serverAbstractSwitch implements serverSwi
noticeURL.close(); noticeURL.close();
errorURL.close(); errorURL.close();
profiles.close(); profiles.close();
parser.close(); parser.close();
cacheManager.close(); cacheManager.close();
} catch (IOException e) {} } catch (IOException e) {}
log.logSystem("SWITCHBOARD SHUTDOWN TERMINATED"); 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