Search in sources :

Example 1 with RedisIndexStorage

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);
}
Also used : RedisIndexStorage(ai.grakn.engine.task.postprocessing.redisstorage.RedisIndexStorage) IndexPostProcessor(ai.grakn.engine.task.postprocessing.IndexPostProcessor) MetricRegistry(com.codahale.metrics.MetricRegistry) RedisCountStorage(ai.grakn.engine.task.postprocessing.redisstorage.RedisCountStorage) CountPostProcessor(ai.grakn.engine.task.postprocessing.CountPostProcessor) Before(org.junit.Before)

Aggregations

CountPostProcessor (ai.grakn.engine.task.postprocessing.CountPostProcessor)1 IndexPostProcessor (ai.grakn.engine.task.postprocessing.IndexPostProcessor)1 RedisCountStorage (ai.grakn.engine.task.postprocessing.redisstorage.RedisCountStorage)1 RedisIndexStorage (ai.grakn.engine.task.postprocessing.redisstorage.RedisIndexStorage)1 MetricRegistry (com.codahale.metrics.MetricRegistry)1 Before (org.junit.Before)1