|
|
|
@ -473,15 +473,14 @@ public class Balancer {
|
|
|
|
|
long w;
|
|
|
|
|
Row.Entry rowEntry;
|
|
|
|
|
try {
|
|
|
|
|
rowEntry=(n == null) ? null : this.urlFileIndex.get(n, false);
|
|
|
|
|
rowEntry = this.urlFileIndex.get(n, false);
|
|
|
|
|
if (rowEntry == null) {
|
|
|
|
|
w = Latency.waitingRemainingGuessed(entry.getKey(), this.minimumLocalDelta, this.minimumGlobalDelta);
|
|
|
|
|
} else {
|
|
|
|
|
continue;
|
|
|
|
|
}
|
|
|
|
|
Request crawlEntry = new Request(rowEntry);
|
|
|
|
|
w = Latency.waitingRemaining(crawlEntry.url(), robots, this.myAgentIDs, this.minimumLocalDelta, this.minimumGlobalDelta);
|
|
|
|
|
//System.out.println("*** waitingRemaining = " + w + ", guessed = " + Latency.waitingRemainingGuessed(entry.getKey(), this.minimumLocalDelta, this.minimumGlobalDelta));
|
|
|
|
|
//System.out.println("*** explained: " + Latency.waitingRemainingExplain(crawlEntry.url(), robots, this.myAgentIDs, this.minimumLocalDelta, this.minimumGlobalDelta));
|
|
|
|
|
}
|
|
|
|
|
} catch (IOException e1) {
|
|
|
|
|
w = Latency.waitingRemainingGuessed(entry.getKey(), this.minimumLocalDelta, this.minimumGlobalDelta);
|
|
|
|
|
}
|
|
|
|
|