oneTest(idxDir, schedule, numTestContent); // test index pick up
return;
}
private void oneTest(File idxDir, String schedule, long numTestContent) throws IOException, InterruptedException
{
DefaultZoieVersionFactory defaultZoieVersionFactory = new DefaultZoieVersionFactory();
HourglassDirectoryManagerFactory<DefaultZoieVersion> factory = new HourglassDirectoryManagerFactory<DefaultZoieVersion>(idxDir, new HourGlassScheduler(HourGlassScheduler.FREQUENCY.MINUTELY, schedule, 100), defaultZoieVersionFactory);
ZoieConfig<DefaultZoieVersion> zConfig = new ZoieConfig<DefaultZoieVersion>(defaultZoieVersionFactory);
zConfig.setBatchSize(3);
zConfig.setBatchDelay(10);
zConfig.setFreshness(10);