public interface PreemptableResourceScheduler extends ResourceScheduler
| Modifier and Type | Method and Description |
|---|---|
void |
dropContainerReservation(RMContainer container)
If the scheduler support container reservations, this method is used to
ask the scheduler to drop the reservation for the given container.
|
void |
killContainer(RMContainer container)
Ask the scheduler to forcibly interrupt the container given as input
|
void |
preemptContainer(org.apache.hadoop.yarn.api.records.ApplicationAttemptId aid,
RMContainer container)
Ask the scheduler to obtain back the container from a specific application
by issuing a preemption request
|
reinitializeallocate, checkAccess, getAppResourceUsageReport, getAppsInQueue, getMaximumResourceCapability, getMinimumResourceCapability, getNodeReport, getNumClusterNodes, getQueueInfo, getQueueUserAclInfo, getRMContainer, getRootQueueMetrics, getSchedulerAppInfo, moveApplicationrecovervoid dropContainerReservation(RMContainer container)
container - Reference to reserved container allocation.void preemptContainer(org.apache.hadoop.yarn.api.records.ApplicationAttemptId aid,
RMContainer container)
aid - the application from which we want to get a container backcontainer - the container we want backvoid killContainer(RMContainer container)
container - Copyright © 2014 Apache Software Foundation. All Rights Reserved.