public interface SchedulerState
Modifier and Type | Method and Description |
---|---|
void |
cancel(Task task) |
List<Task> |
getActiveTasks()
Returns the list of active tasks that have not yet been cancelled.
|
int |
getCancelledTaskCount()
The number of active tasks that have been cancelled, but have not yet
ended.
|
ClusterController |
getController() |
List<Task> |
getStartingTasks()
Returns the list of tasks awaiting a container request to be sent to YARN
or for which a container request has been sent to YARN, but no container
allocation has yet been received.
|
int |
getTaskCount()
The number of tasks in any active (non-ended) lifecycle state.
|
void |
start(Task task)
Start the given task.
|
int getTaskCount()
int getCancelledTaskCount()
List<Task> getStartingTasks()
List<Task> getActiveTasks()
void start(Task task)
task
- void cancel(Task task)
ClusterController getController()
Copyright © 1970 The Apache Software Foundation. All rights reserved.