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
|
reinitialize, setRMContextaddQueue, allocate, checkAccess, getAppResourceUsageReport, getAppsInQueue, getClusterResource, getIncrementResourceCapability, getMaximumResourceCapability, getMaximumResourceCapability, getMinimumResourceCapability, getNodeReport, getNumClusterNodes, getPlanQueues, getQueueInfo, getQueueUserAclInfo, getResourceCalculator, getRMContainer, getRootQueueMetrics, getSchedulerAppInfo, getSchedulingResourceTypes, killAllAppsInQueue, moveAllApps, moveApplication, removeQueue, setEntitlementrecovervoid 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 © 2016 Apache Software Foundation. All Rights Reserved.