long start = System.currentTimeMillis();
ArrayList<UURI> list = new ArrayList<UURI>(1000);
int count = 0;
final int MAX_COUNT = 1000;
for (; count < MAX_COUNT; count++) {
UURI u = UURIFactory.getInstance("http://www" +
count + ".archive.org/" + count + "/index.html");
this.filter.add(u.toString(), new CrawlURI(u));
if (count > 0 && ((count % 100) == 0)) {
list.add(u);
}
}
this.logger.info("Added " + count + " in " +
(System.currentTimeMillis() - start));
start = System.currentTimeMillis();
for (Iterator<UURI> i = list.iterator(); i.hasNext();) {
UURI uuri = i.next();
this.filter.add(uuri.toString(), new CrawlURI(uuri));
}
this.logger.info("Added random " + list.size() + " in " +
(System.currentTimeMillis() - start));
start = System.currentTimeMillis();
for (Iterator<UURI> i = list.iterator(); i.hasNext();) {
UURI uuri = i.next();
this.filter.add(uuri.toString(), new CrawlURI(uuri));
}
this.logger.info("Deleted random " + list.size() + " in " +
(System.currentTimeMillis() - start));
// Looks like delete doesn't work.
assertTrue("Count is off: " + this.filter.count(),