org.apache.hadoop.yarn.server.resourcemanager.scheduler
Interface PreemptableResourceScheduler

All Superinterfaces:
org.apache.hadoop.yarn.event.EventHandler<SchedulerEvent>, Recoverable, ResourceScheduler, YarnScheduler
All Known Implementing Classes:
CapacityScheduler

public interface PreemptableResourceScheduler
extends ResourceScheduler

Interface for a scheduler that supports preemption/killing


Method Summary
 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
 
Methods inherited from interface org.apache.hadoop.yarn.server.resourcemanager.scheduler.ResourceScheduler
reinitialize
 
Methods inherited from interface org.apache.hadoop.yarn.server.resourcemanager.scheduler.YarnScheduler
allocate, checkAccess, getMaximumResourceCapability, getMinimumResourceCapability, getNodeReport, getNumClusterNodes, getQueueInfo, getQueueUserAclInfo, getRootQueueMetrics, getSchedulerAppInfo
 
Methods inherited from interface org.apache.hadoop.yarn.event.EventHandler
handle
 
Methods inherited from interface org.apache.hadoop.yarn.server.resourcemanager.recovery.Recoverable
recover
 

Method Detail

dropContainerReservation

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.

Parameters:
container - Reference to reserved container allocation.

preemptContainer

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

Parameters:
aid - the application from which we want to get a container back
container - the container we want back

killContainer

void killContainer(RMContainer container)
Ask the scheduler to forcibly interrupt the container given as input

Parameters:
container -


Copyright © 2014 Apache Software Foundation. All Rights Reserved.