mirror of https://github.com/apache/lucene.git
changed to hostmanager-aware taskQueue
git-svn-id: https://svn.apache.org/repos/asf/lucene/java/trunk@150838 13f79535-47bb-0310-9956-ffa450edef68
This commit is contained in:
parent
b6243a3cbe
commit
aaffb3ed75
|
@ -119,7 +119,7 @@ public class Fetcher implements MessageListener
|
||||||
FetcherTask.setDocStorage(docStorage);
|
FetcherTask.setDocStorage(docStorage);
|
||||||
FetcherTask.setLinkStorage(linkStorage);
|
FetcherTask.setLinkStorage(linkStorage);
|
||||||
fetcherPool = new ThreadPool(maxThreads, new FetcherThreadFactory(hostManager));
|
fetcherPool = new ThreadPool(maxThreads, new FetcherThreadFactory(hostManager));
|
||||||
fetcherPool.setQueue(new FetcherTaskQueue());
|
fetcherPool.setQueue(new FetcherTaskQueue(hostManager));
|
||||||
docsRead = 0;
|
docsRead = 0;
|
||||||
this.hostManager = hostManager;
|
this.hostManager = hostManager;
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in New Issue