public class TaskState extends Object implements Serializable
| Modifier and Type | Class and Description |
|---|---|
static class |
TaskState.Priority
The priority of the task which decides which queue the task should go into
|
| Modifier and Type | Method and Description |
|---|---|
TaskCheckpoint |
checkpoint() |
TaskState |
checkpoint(TaskCheckpoint taskCheckpoint) |
TaskState |
copy() |
String |
creator() |
EngineID |
engineID() |
String |
exception() |
TaskId |
getId() |
TaskState |
markCompleted() |
TaskState |
markFailed(Throwable exception) |
TaskState |
markRunning(EngineID engineID) |
TaskState |
markScheduled() |
TaskState |
markStopped() |
static TaskState |
of(Class<?> taskClass,
String creator,
TaskSchedule schedule,
TaskState.Priority priority) |
TaskState.Priority |
priority() |
TaskSchedule |
schedule() |
TaskState |
schedule(TaskSchedule schedule) |
String |
stackTrace() |
TaskStatus |
status() |
java.time.Instant |
statusChangeTime() |
Class<? extends BackgroundTask> |
taskClass() |
String |
toString() |
public static TaskState of(Class<?> taskClass, String creator, TaskSchedule schedule, TaskState.Priority priority)
public TaskId getId()
public TaskState markCompleted()
public TaskState markScheduled()
public TaskState markStopped()
public TaskStatus status()
public java.time.Instant statusChangeTime()
public Class<? extends BackgroundTask> taskClass()
public String creator()
public EngineID engineID()
public TaskSchedule schedule()
public TaskState schedule(TaskSchedule schedule)
public String stackTrace()
public String exception()
public TaskState checkpoint(TaskCheckpoint taskCheckpoint)
public TaskState.Priority priority()
public TaskCheckpoint checkpoint()
public TaskState copy()
Copyright © 2017 Grakn Labs Ltd. All rights reserved.