| Modifier and Type | Method and Description |
|---|---|
TaskState |
TaskState.checkpoint(TaskCheckpoint taskCheckpoint) |
TaskState |
TaskState.copy() |
TaskState |
TaskStateDeserializer.deserialize(String topic,
byte[] data) |
static TaskState |
TaskStateDeserializer.deserializeFromString(String data) |
TaskState |
TaskStateStorage.getState(TaskId id)
This is a copy of the internal TaskState object.
|
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,
mjson.Json configuration) |
static TaskState |
TaskState.of(Class<?> taskClass,
String creator,
TaskSchedule schedule,
mjson.Json configuration,
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.
|
| Modifier and Type | Method and Description |
|---|---|
void |
TaskManager.addTask(TaskState taskState)
Schedule a single shot/one off BackgroundTask to run after a @delay in milliseconds.
|
TaskId |
TaskStateStorage.newState(TaskState state)
Create a new task state and store it, returning an ID to later access this task state.
|
byte[] |
TaskStateSerializer.serialize(String topic,
TaskState data) |
static String |
TaskStateSerializer.serializeToString(TaskState data) |
Boolean |
TaskStateStorage.updateState(TaskState state)
Used to update task state.
|
| Modifier and Type | Method and Description |
|---|---|
static org.apache.kafka.clients.consumer.Consumer<TaskId,TaskState> |
ConfigHelper.kafkaConsumer(String groupId) |
static org.apache.kafka.clients.producer.Producer<TaskId,TaskState> |
ConfigHelper.kafkaProducer() |
| Modifier and Type | Method and Description |
|---|---|
void |
StandaloneTaskManager.addTask(TaskState taskState) |
| Modifier and Type | Method and Description |
|---|---|
void |
MultiQueueTaskManager.addTask(TaskState taskState) |
| Modifier and Type | Method and Description |
|---|---|
org.apache.kafka.clients.consumer.Consumer<TaskId,TaskState> |
SingleQueueTaskManager.newConsumer()
Get a new kafka consumer listening on the new tasks topic
|
| Modifier and Type | Method and Description |
|---|---|
void |
SingleQueueTaskManager.addTask(TaskState taskState)
Create an instance of a task based on the given parameters and submit it a Kafka queue.
|
| Constructor and Description |
|---|
TaskFailover(org.apache.curator.framework.CuratorFramework client,
TaskStateStorage stateStorage,
org.apache.kafka.clients.producer.Producer<TaskId,TaskState> producer) |
| Modifier and Type | Method and Description |
|---|---|
TaskState |
TaskStateZookeeperStore.getState(TaskId id)
Retrieve the TaskState associated with the given ID.
|
TaskState |
TaskStateInMemoryStore.getState(TaskId id) |
TaskState |
TaskStateGraphStore.getState(TaskId id) |
TaskState |
TaskStateGraphStore.instanceToState(GraknGraph graph,
Instance instance)
Given an instance concept, turn it into a TaskState object.
|
| Modifier and Type | Method and Description |
|---|---|
Set<TaskState> |
TaskStateZookeeperStore.getTasks(TaskStatus taskStatus,
String taskClassName,
String createdBy,
EngineID engineRunningOn,
int limit,
int offset)
This implementation will fetch all of the tasks from zookeeper and then
filer them out.
|
Set<TaskState> |
TaskStateInMemoryStore.getTasks(TaskStatus taskStatus,
String taskClassName,
String createdBy,
EngineID engineRunningOn,
int limit,
int offset) |
Set<TaskState> |
TaskStateGraphStore.getTasks(TaskStatus taskStatus,
String taskClassName,
String createdBy,
EngineID engineRunningOn,
int limit,
int offset) |
Set<TaskState> |
TaskStateGraphStore.getTasks(TaskStatus taskStatus,
String taskClassName,
String createdBy,
EngineID engineRunningOn,
int limit,
int offset,
Boolean recurring) |
| Modifier and Type | Method and Description |
|---|---|
TaskId |
TaskStateZookeeperStore.newState(TaskState task)
Creates a new task state in Zookeeper
|
TaskId |
TaskStateInMemoryStore.newState(TaskState state) |
TaskId |
TaskStateGraphStore.newState(TaskState task) |
Boolean |
TaskStateZookeeperStore.updateState(TaskState task)
Writes a new state to Zookeeper and records the engine that task is running on.
|
Boolean |
TaskStateInMemoryStore.updateState(TaskState state) |
Boolean |
TaskStateGraphStore.updateState(TaskState task) |
Copyright © 2017 Grakn Labs Ltd. All rights reserved.