| Package | Description |
|---|---|
| ai.grakn.engine.postprocessing | |
| ai.grakn.engine.tasks | |
| ai.grakn.engine.tasks.manager | |
| ai.grakn.engine.tasks.manager.redisqueue |
| Modifier and Type | Method and Description |
|---|---|
static TaskState |
UpdatingInstanceCountTask.createTask(Class creator)
Helper method which creates PP Task States.
|
static TaskState |
PostProcessingTask.createTask(Class creator,
int delay)
Helper method which creates PP Task States.
|
| Modifier and Type | Method and Description |
|---|---|
void |
BackgroundTask.addTask(TaskState taskState,
TaskConfiguration configuration)
Submit a new task for execution
|
| Modifier and Type | Method and Description |
|---|---|
TaskState |
TaskState.checkpoint(TaskCheckpoint taskCheckpoint) |
TaskState |
TaskState.copy() |
TaskState |
TaskStateStorage.getState(TaskId id)
This is a copy of the internal TaskState object.
|
TaskState |
TaskStateInMemoryStore.getState(TaskId id) |
TaskState |
TaskState.markCompleted() |
TaskState |
TaskState.markFailed(Throwable exception) |
TaskState |
TaskState.markRunning(EngineID engineID) |
TaskState |
TaskState.markScheduled() |
TaskState |
TaskState.markStopped() |
static TaskState |
TaskState.of(Class<?> taskClass,
String creator,
TaskSchedule schedule,
TaskState.Priority priority) |
static TaskState |
TaskState.of(TaskId id) |
TaskState |
TaskState.schedule(TaskSchedule schedule) |
| Modifier and Type | Method and Description |
|---|---|
Set<TaskState> |
TaskStateStorage.getTasks(TaskStatus taskStatus,
String taskClassName,
String createdBy,
EngineID runningOnEngine,
int limit,
int offset)
Return a Set of Pairs of tasks that match any of the criteria.
|
Set<TaskState> |
TaskStateInMemoryStore.getTasks(TaskStatus taskStatus,
String taskClassName,
String createdBy,
EngineID engineRunningOn,
int limit,
int offset) |
| Modifier and Type | Method and Description |
|---|---|
void |
TaskSubmitter.addTask(TaskState taskState,
TaskConfiguration configuration)
Schedule a
BackgroundTask for execution. |
void |
StandaloneTaskManager.addTask(TaskState taskState,
TaskConfiguration configuration) |
TaskId |
TaskStateStorage.newState(TaskState state)
Create a new task state and store it, returning an ID to later access this task state.
|
TaskId |
TaskStateInMemoryStore.newState(TaskState state) |
Boolean |
TaskStateStorage.updateState(TaskState state)
Used to update task state.
|
Boolean |
TaskStateInMemoryStore.updateState(TaskState state) |
| Modifier and Type | Method and Description |
|---|---|
TaskState |
RedisTaskStorage.getState(TaskId id) |
| Modifier and Type | Method and Description |
|---|---|
Set<TaskState> |
RedisTaskStorage.getTasks(TaskStatus taskStatus,
String taskClassName,
String createdBy,
EngineID runningOnEngine,
int limit,
int offset) |
| Modifier and Type | Method and Description |
|---|---|
void |
RedisTaskManager.addTask(TaskState taskState,
TaskConfiguration configuration) |
TaskId |
RedisTaskStorage.newState(TaskState state) |
Boolean |
RedisTaskStorage.updateState(TaskState state) |
| Constructor and Description |
|---|
RedisTaskQueueConsumer(String taskId,
TaskState taskState,
TaskConfiguration taskConfiguration) |
Copyright © 2017 Grakn Labs Ltd. All rights reserved.