use of ai.grakn.engine.task.postprocessing.redisstorage.RedisIndexStorage in project grakn by graknlabs.
the class PostProcessingTest method setupPostProcessor.
@Before
public void setupPostProcessor() {
MetricRegistry metricRegistry = new MetricRegistry();
RedisIndexStorage indexStorage = RedisIndexStorage.create(engine.getJedisPool(), metricRegistry);
IndexPostProcessor indexPostProcessor = IndexPostProcessor.create(engine.server().lockProvider(), indexStorage);
RedisCountStorage countStorage = RedisCountStorage.create(engine.getJedisPool(), metricRegistry);
CountPostProcessor countPostProcessor = CountPostProcessor.create(engine.config(), engine.factory(), engine.server().lockProvider(), metricRegistry, countStorage);
session = engine.sessionWithNewKeyspace();
postProcessor = PostProcessor.create(indexPostProcessor, countPostProcessor);
}
Aggregations