*) better handling of server shutdown

See: e.g. http://www.yacy-forum.de/viewtopic.php?p=25234

git-svn-id: https://svn.berlios.de/svnroot/repos/yacy/trunk@2471 6c8d7289-2bf4-0310-a012-ef5d649a1542
pull/1/head
theli 19 years ago
parent b4acbdaa97
commit 857a2d76a2

@ -81,7 +81,7 @@ public class IndexCreateWWWGlobalQueue_p {
if (post.containsKey("clearcrawlqueue")) {
int c = switchboard.urlPool.noticeURL.stackSize(plasmaCrawlNURL.STACK_TYPE_LIMIT);
switchboard.urlPool.noticeURL.clear(plasmaCrawlNURL.STACK_TYPE_LIMIT);
switchboard.cleanProfiles();
try { switchboard.cleanProfiles(); } catch (InterruptedException e) { /* Ignore this */}
/*
int c = 0;
while (switchboard.urlPool.noticeURL.stackSize(plasmaCrawlNURL.STACK_TYPE_LIMIT) > 0) {

@ -92,7 +92,7 @@ public class IndexCreateWWWLocalQueue_p {
if (pattern.equals(".*")) {
c = switchboard.urlPool.noticeURL.stackSize(plasmaCrawlNURL.STACK_TYPE_CORE);
switchboard.urlPool.noticeURL.clear(plasmaCrawlNURL.STACK_TYPE_CORE);
switchboard.cleanProfiles();
try { switchboard.cleanProfiles(); } catch (InterruptedException e) {/* ignore this */}
} else{
Pattern compiledPattern = null;
try {

Loading…
Cancel
Save