Skip to content

Apache Lucene open-source search software

- Added FIXME.

Otis Gospodnetic25926e686669
diff --git a/sandbox/contributions/webcrawler-LARM/src/de/lanlab/larm/fetcher/FetcherTaskQueue.java b/sandbox/contributions/webcrawler-LARM/src/de/lanlab/larm/fetcher/FetcherTaskQueue.java
index 5647a7da962..439643d13eb 100644
--- a/sandbox/contributions/webcrawler-LARM/src/de/lanlab/larm/fetcher/FetcherTaskQueue.java
+++ b/sandbox/contributions/webcrawler-LARM/src/de/lanlab/larm/fetcher/FetcherTaskQueue.java
@@ -127,6 +127,7 @@ public class FetcherTaskQueue extends TaskQueue
// add a new host to the queue
//String host2 = host.replace(':', '_').replace('/', '_').replace('\\', '_');
// make it file system ready
+ // FIXME: put '100' in properties. This is block size (the number of objects/block)
q = new CachingQueue(host, 100);
servers.put(host, q);
}
diff --git a/sandbox/contributions/webcrawler-LARM/src/de/lanlab/larm/util/CachingQueue.java b/sandbox/contributions/webcrawler-LARM/src/de/lanlab/larm/util/CachingQueue.java
index 72304447e61..95f173fc626 100644
--- a/sandbox/contributions/webcrawler-LARM/src/de/lanlab/larm/util/CachingQueue.java
+++ b/sandbox/contributions/webcrawler-LARM/src/de/lanlab/larm/util/CachingQueue.java
@@ -319,8 +319,6 @@ class QueueBlock
public class CachingQueue implements Queue
{
-
-
/**
* the Blocks
*/
@@ -373,6 +371,7 @@ public class CachingQueue implements Queue
queueBlocks = new LinkedList();
this.name = name;
this.blockSize = blockSize;
+ // FIXME: the name of the caching queue directory needs to be in properties
File cq = new File("cachingqueue");
cq.mkdir();
}