public interface SchedulerStateActions
Modifier and Type | Method and Description |
---|---|
void |
adjustTasks()
Adjust the number of running tasks as needed to balance the number of
running tasks with the desired number.
|
void |
cancel(Task task) |
void |
checkTasks(EventContext context,
long curTime) |
void |
containerAllocated(EventContext context,
org.apache.hadoop.yarn.api.records.Container container)
A container request has been granted.
|
int |
getLiveCount() |
String |
getName()
Returns the name of the scheduler associated with this task action group.
|
int |
getRequestCount() |
Scheduler |
getScheduler()
Returns the scheduler associated with this task group.
|
Task |
getTask(int id) |
int |
getTaskCount() |
boolean |
isDone()
Determine if this task group is done.
|
boolean |
requestContainers(EventContext context,
int maxRequests)
Request a container the first task that we wish to start.
|
void |
shutDown(EventContext context)
Shut down this task group by canceling all tasks not already cancelled.
|
void |
visitTaskModels(TaskVisitor visitor) |
String getName()
Scheduler getScheduler()
void adjustTasks()
boolean requestContainers(EventContext context, int maxRequests)
void containerAllocated(EventContext context, org.apache.hadoop.yarn.api.records.Container container)
context
- container
- void shutDown(EventContext context)
context
- boolean isDone()
int getTaskCount()
int getLiveCount()
int getRequestCount()
void visitTaskModels(TaskVisitor visitor)
void checkTasks(EventContext context, long curTime)
void cancel(Task task)
Task getTask(int id)
Copyright © 1970 The Apache Software Foundation. All rights reserved.