void |
PersistentTasksClusterService.completePersistentTask(String id,
long allocationId,
Exception failure,
ActionListener<PersistentTasksCustomMetaData.PersistentTask<?>> listener) |
Restarts a record about a running persistent task from cluster state
|
<Params extends PersistentTaskParams> void |
PersistentTasksClusterService.createPersistentTask(String taskId,
String taskName,
Params taskParams,
ActionListener<PersistentTasksCustomMetaData.PersistentTask<?>> listener) |
Creates a new persistent task on master node
|
Collection<PersistentTasksCustomMetaData.PersistentTask<?>> |
PersistentTasksCustomMetaData.findTasks(String taskName,
Predicate<PersistentTasksCustomMetaData.PersistentTask<?>> predicate) |
|
void |
PersistentTasksClusterService.removePersistentTask(String id,
ActionListener<PersistentTasksCustomMetaData.PersistentTask<?>> listener) |
Removes the persistent task
|
void |
PersistentTasksService.sendCompletionRequest(String taskId,
long taskAllocationId,
Exception taskFailure,
ActionListener<PersistentTasksCustomMetaData.PersistentTask<?>> listener) |
Notifies the master node about the completion of a persistent task.
|
void |
PersistentTasksService.sendRemoveRequest(String taskId,
ActionListener<PersistentTasksCustomMetaData.PersistentTask<?>> listener) |
Notifies the master node to remove a persistent task from the cluster state
|
<Params extends PersistentTaskParams> void |
PersistentTasksService.sendStartRequest(String taskId,
String taskName,
Params taskParams,
ActionListener<PersistentTasksCustomMetaData.PersistentTask<Params>> listener) |
Notifies the master node to create new persistent task and to assign it to a node.
|
void |
PersistentTasksClusterService.unassignPersistentTask(String taskId,
long taskAllocationId,
String reason,
ActionListener<PersistentTasksCustomMetaData.PersistentTask<?>> listener) |
This unassigns a task from any node, i.e.
|
void |
AllocatedPersistentTask.updatePersistentTaskState(PersistentTaskState state,
ActionListener<PersistentTasksCustomMetaData.PersistentTask<?>> listener) |
Updates the persistent state for the corresponding persistent task.
|
void |
PersistentTasksClusterService.updatePersistentTaskState(String taskId,
long taskAllocationId,
PersistentTaskState taskState,
ActionListener<PersistentTasksCustomMetaData.PersistentTask<?>> listener) |
Update the state of a persistent task
|
void |
AllocatedPersistentTask.waitForPersistentTask(Predicate<PersistentTasksCustomMetaData.PersistentTask<?>> predicate,
TimeValue timeout,
PersistentTasksService.WaitForPersistentTaskListener<?> listener) |
Waits for a given persistent task to comply with a given predicate, then call back the listener accordingly.
|
void |
PersistentTasksService.waitForPersistentTaskCondition(String taskId,
Predicate<PersistentTasksCustomMetaData.PersistentTask<?>> predicate,
TimeValue timeout,
PersistentTasksService.WaitForPersistentTaskListener<?> listener) |
Waits for a given persistent task to comply with a given predicate, then call back the listener accordingly.
|