|
|
|
@ -334,7 +334,7 @@ public final class plasmaSwitchboard extends serverAbstractSwitch implements ser
|
|
|
|
|
|
|
|
|
|
// deploy threads
|
|
|
|
|
log.logSystem("Starting Threads");
|
|
|
|
|
int indexing_cluster = Integer.parseInt(getConfig("?80_indexing_cluster", "1"));
|
|
|
|
|
int indexing_cluster = Integer.parseInt(getConfig("80_indexing_cluster", "1"));
|
|
|
|
|
if (indexing_cluster < 1) indexing_cluster = 1;
|
|
|
|
|
deployThread("90_cleanup", "Cleanup", "simple cleaning process for monitoring information" ,
|
|
|
|
|
new serverInstantThread(this, "cleanupJob", "cleanupJobSize"), 10000); // all 5 Minutes
|
|
|
|
@ -491,6 +491,8 @@ public final class plasmaSwitchboard extends serverAbstractSwitch implements ser
|
|
|
|
|
public boolean deQueue() {
|
|
|
|
|
// work off fresh entries from the proxy or from the crawler
|
|
|
|
|
|
|
|
|
|
plasmaHTCache.Entry nextentry;
|
|
|
|
|
synchronized (queueStack) {
|
|
|
|
|
if (queueStack.size() == 0) {
|
|
|
|
|
//log.logDebug("DEQUEUE: queue is empty");
|
|
|
|
|
return false; // nothing to do
|
|
|
|
@ -506,7 +508,9 @@ public final class plasmaSwitchboard extends serverAbstractSwitch implements ser
|
|
|
|
|
", limitStackSize=" + noticeURL.limitStackSize() +
|
|
|
|
|
", overhangStackSize=" + noticeURL.overhangStackSize() +
|
|
|
|
|
", remoteStackSize=" + noticeURL.remoteStackSize());
|
|
|
|
|
processResourceStack((plasmaHTCache.Entry) queueStack.removeFirst());
|
|
|
|
|
nextentry = (plasmaHTCache.Entry) queueStack.removeFirst();
|
|
|
|
|
}
|
|
|
|
|
processResourceStack(nextentry);
|
|
|
|
|
return true;
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|