public class PostProcessingTask extends Object implements BackgroundTask
Class which facilitates running PostProcessor jobs.
| Constructor and Description |
|---|
PostProcessingTask(EngineGraknTxFactory factory,
IndexPostProcessor indexPostProcessor,
GraknConfig config) |
| Modifier and Type | Method and Description |
|---|---|
void |
close()
Shutdown the task.
|
void |
processIndex(ai.grakn.Keyspace keyspace,
String index)
Process the provided index belonging to the provided
Keyspace. |
void |
run()
The primary method to execute when the
BackgroundTask starts executing |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitperiodpublic PostProcessingTask(EngineGraknTxFactory factory, IndexPostProcessor indexPostProcessor, GraknConfig config)
public void run()
BackgroundTaskBackgroundTask starts executingrun in interface BackgroundTaskpublic void processIndex(ai.grakn.Keyspace keyspace,
String index)
Keyspace.
If post processing fails the index and ids relating to that index are restored back in the cache of RedisIndexStoragekeyspace - The Keyspace requiring post processing for a specific indexindex - the index to be post processedpublic void close()
BackgroundTaskclose in interface BackgroundTaskclose in interface AutoCloseableCopyright © 2018 Grakn Labs Ltd. All rights reserved.