public interface TaskRunner
TaskQueue
.Modifier and Type | Method and Description |
---|---|
Collection<? extends TaskRunnerWorkItem> |
getKnownTasks() |
Collection<? extends TaskRunnerWorkItem> |
getPendingTasks() |
Collection<? extends TaskRunnerWorkItem> |
getRunningTasks() |
Collection<ZkWorker> |
getWorkers() |
com.google.common.util.concurrent.ListenableFuture<TaskStatus> |
run(Task task)
Run a task.
|
void |
shutdown(String taskid)
Inform the task runner it can clean up any resources associated with a task.
|
com.google.common.util.concurrent.ListenableFuture<TaskStatus> run(Task task)
task
- task to runvoid shutdown(String taskid)
taskid
- task ID to clean up resources forCollection<? extends TaskRunnerWorkItem> getRunningTasks()
Collection<? extends TaskRunnerWorkItem> getPendingTasks()
Collection<? extends TaskRunnerWorkItem> getKnownTasks()
Collection<ZkWorker> getWorkers()
Copyright © 2011–2015. All rights reserved.