public class UpdatingInstanceCountTask extends BackgroundTask
Task that controls when types are updated with their new instance counts
This task begins only if enough time has passed (configurable) since the last time a job was added.
| Constructor and Description |
|---|
UpdatingInstanceCountTask() |
| Modifier and Type | Method and Description |
|---|---|
static TaskConfiguration |
createConfig(String keyspace,
String config)
Helper method which creates the task config needed in order to execute the updating count task
|
static TaskState |
createTask(Class creator)
Helper method which creates PP Task States.
|
boolean |
start()
Called to start execution of the task, may be called on a newly scheduled or previously stopped task.
|
addTask, configuration, engineConfiguration, factory, initialize, pause, redis, resume, saveCheckpoint, stoppublic boolean start()
BackgroundTaskstart in class BackgroundTaskpublic static TaskState createTask(Class creator)
creator - The class which is creating the taskpublic static TaskConfiguration createConfig(String keyspace, String config)
keyspace - The keyspace of the graph to execute this on.config - The config which contains the concepts with updated countsCopyright © 2017 Grakn Labs Ltd. All rights reserved.