@InterfaceAudience.Private @InterfaceStability.Unstable public class FiCaSchedulerApp extends SchedulerApplicationAttempt
SchedulerApplicationAttempt.ContainersAndNMTokensAllocationappSchedulingInfo, currentConsumption, currentReservation, isStopped, lastScheduledContainer, liveContainers, newlyAllocatedContainers, queue, reservedContainers, rmContext| Constructor and Description |
|---|
FiCaSchedulerApp(org.apache.hadoop.yarn.api.records.ApplicationAttemptId applicationAttemptId,
String user,
Queue queue,
ActiveUsersManager activeUsersManager,
RMContext rmContext) |
| Modifier and Type | Method and Description |
|---|---|
void |
addPreemptContainer(org.apache.hadoop.yarn.api.records.ContainerId cont) |
RMContainer |
allocate(NodeType type,
FiCaSchedulerNode node,
org.apache.hadoop.yarn.api.records.Priority priority,
org.apache.hadoop.yarn.api.records.ResourceRequest request,
org.apache.hadoop.yarn.api.records.Container container) |
boolean |
containerCompleted(RMContainer rmContainer,
org.apache.hadoop.yarn.api.records.ContainerStatus containerStatus,
RMContainerEventType event) |
Allocation |
getAllocation(org.apache.hadoop.yarn.util.resource.ResourceCalculator rc,
org.apache.hadoop.yarn.api.records.Resource clusterResource,
org.apache.hadoop.yarn.api.records.Resource minimumAllocation)
This method produces an Allocation that includes the current view
of the resources that will be allocated to and preempted from this
application.
|
float |
getLocalityWaitFactor(org.apache.hadoop.yarn.api.records.Priority priority,
int clusterNodes) |
org.apache.hadoop.yarn.api.records.Resource |
getTotalPendingRequests() |
boolean |
unreserve(FiCaSchedulerNode node,
org.apache.hadoop.yarn.api.records.Priority priority) |
addReReservation, addSchedulingOpportunity, containerLaunchedOnNode, getAMResource, getApplicationAttemptId, getApplicationId, getCurrentConsumption, getCurrentReservation, getHeadroom, getLastScheduledContainer, getLiveContainers, getLiveContainersMap, getNewContainerId, getNumReservedContainers, getPriorities, getQueue, getQueueName, getReReservations, getReservedContainers, getResource, getResourceLimit, getResourceRequest, getResourceRequests, getResourceUsageReport, getRMContainer, getSchedulingOpportunities, getTotalRequiredResources, getUnmanagedAM, getUser, isAmRunning, isBlacklisted, isPending, isReserved, isStopped, move, pullNewlyAllocatedContainersAndNMTokens, recoverContainer, recoverResourceRequests, reserve, resetReReservations, resetSchedulingOpportunities, resetSchedulingOpportunities, setAMResource, setAmRunning, setHeadroom, showRequests, stop, subtractSchedulingOpportunity, transferStateFromPreviousAttempt, updateBlacklist, updateResourceRequestspublic FiCaSchedulerApp(org.apache.hadoop.yarn.api.records.ApplicationAttemptId applicationAttemptId,
String user,
Queue queue,
ActiveUsersManager activeUsersManager,
RMContext rmContext)
public boolean containerCompleted(RMContainer rmContainer, org.apache.hadoop.yarn.api.records.ContainerStatus containerStatus, RMContainerEventType event)
public RMContainer allocate(NodeType type, FiCaSchedulerNode node, org.apache.hadoop.yarn.api.records.Priority priority, org.apache.hadoop.yarn.api.records.ResourceRequest request, org.apache.hadoop.yarn.api.records.Container container)
public boolean unreserve(FiCaSchedulerNode node, org.apache.hadoop.yarn.api.records.Priority priority)
public float getLocalityWaitFactor(org.apache.hadoop.yarn.api.records.Priority priority,
int clusterNodes)
public org.apache.hadoop.yarn.api.records.Resource getTotalPendingRequests()
public void addPreemptContainer(org.apache.hadoop.yarn.api.records.ContainerId cont)
public Allocation getAllocation(org.apache.hadoop.yarn.util.resource.ResourceCalculator rc, org.apache.hadoop.yarn.api.records.Resource clusterResource, org.apache.hadoop.yarn.api.records.Resource minimumAllocation)
rc - clusterResource - minimumAllocation - Copyright © 2014 Apache Software Foundation. All Rights Reserved.