public class ContainerAllocation extends Object
Modifier and Type | Field and Description |
---|---|
static ContainerAllocation |
APP_SKIPPED
Skip the application, and look at other applications of the same queue
|
static ContainerAllocation |
LOCALITY_SKIPPED
Skip the locality (e.g.
|
static ContainerAllocation |
PRIORITY_SKIPPED
Skip the priority, and look at other priorities of the same application
|
static ContainerAllocation |
QUEUE_SKIPPED
Skip the leaf-queue, and look at other queues of the same parent queue
|
Constructor and Description |
---|
ContainerAllocation(RMContainer containerToBeUnreserved,
org.apache.hadoop.yarn.api.records.Resource resourceToBeAllocated,
AllocationState state) |
Modifier and Type | Method and Description |
---|---|
AllocationState |
getAllocationState() |
NodeType |
getContainerNodeType() |
RMContainer |
getContainerToBeUnreserved() |
org.apache.hadoop.yarn.api.records.Resource |
getResourceToBeAllocated() |
List<RMContainer> |
getToKillContainers() |
org.apache.hadoop.yarn.api.records.Container |
getUpdatedContainer() |
void |
setToKillContainers(List<RMContainer> toKillContainers) |
public static final ContainerAllocation LOCALITY_SKIPPED
public static final ContainerAllocation PRIORITY_SKIPPED
public static final ContainerAllocation APP_SKIPPED
public static final ContainerAllocation QUEUE_SKIPPED
public ContainerAllocation(RMContainer containerToBeUnreserved, org.apache.hadoop.yarn.api.records.Resource resourceToBeAllocated, AllocationState state)
public RMContainer getContainerToBeUnreserved()
public org.apache.hadoop.yarn.api.records.Resource getResourceToBeAllocated()
public AllocationState getAllocationState()
public NodeType getContainerNodeType()
public org.apache.hadoop.yarn.api.records.Container getUpdatedContainer()
public void setToKillContainers(List<RMContainer> toKillContainers)
public List<RMContainer> getToKillContainers()
Copyright © 2017 Apache Software Foundation. All Rights Reserved.