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(ApplicationAttemptId aid,
RMContainer container)
Ask the scheduler to obtain back the container from a specific application
by issuing a preemption request
|
reinitialize
allocate, checkAccess, getMaximumResourceCapability, getMinimumResourceCapability, getNodeReport, getNumClusterNodes, getQueueInfo, getQueueUserAclInfo, getRootQueueMetrics, getSchedulerAppInfo
handle
recover
void dropContainerReservation(RMContainer container)
container
- Reference to reserved container allocation.void preemptContainer(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 © 2013 Apache Software Foundation. All rights reserved.