public class ContainerUpdateContext extends Object
Modifier and Type | Field and Description |
---|---|
protected static org.apache.hadoop.yarn.factories.RecordFactory |
RECORD_FACTORY |
static org.apache.hadoop.yarn.api.records.ContainerId |
UNDEFINED |
Modifier and Type | Method and Description |
---|---|
boolean |
checkAndAddToOutstandingDecreases(org.apache.hadoop.yarn.api.records.UpdateContainerRequest updateReq,
SchedulerNode schedulerNode,
org.apache.hadoop.yarn.api.records.Container container)
Add the container to outstanding decreases.
|
boolean |
checkAndAddToOutstandingIncreases(RMContainer rmContainer,
SchedulerNode schedulerNode,
org.apache.hadoop.yarn.api.records.UpdateContainerRequest updateRequest)
Add the container to outstanding increases.
|
org.apache.hadoop.yarn.api.records.ContainerId |
matchContainerToOutstandingIncreaseReq(SchedulerNode node,
org.apache.hadoop.yarn.server.scheduler.SchedulerRequestKey schedulerKey,
RMContainer rmContainer)
Check if a new container is to be matched up against an outstanding
Container increase request.
|
void |
removeFromOutstandingUpdate(org.apache.hadoop.yarn.server.scheduler.SchedulerRequestKey schedulerKey,
org.apache.hadoop.yarn.api.records.Container container)
Remove Container from outstanding increases / decreases.
|
RMContainer |
swapContainer(RMContainer tempRMContainer,
RMContainer existingRMContainer,
org.apache.hadoop.yarn.api.records.ContainerUpdateType updateType)
Swaps the existing RMContainer's and the temp RMContainers internal
container references after adjusting the resources in each.
|
public static final org.apache.hadoop.yarn.api.records.ContainerId UNDEFINED
protected static final org.apache.hadoop.yarn.factories.RecordFactory RECORD_FACTORY
public boolean checkAndAddToOutstandingDecreases(org.apache.hadoop.yarn.api.records.UpdateContainerRequest updateReq, SchedulerNode schedulerNode, org.apache.hadoop.yarn.api.records.Container container)
updateReq
- UpdateContainerRequest.schedulerNode
- SchedulerNode.container
- Container.public boolean checkAndAddToOutstandingIncreases(RMContainer rmContainer, SchedulerNode schedulerNode, org.apache.hadoop.yarn.api.records.UpdateContainerRequest updateRequest)
rmContainer
- RMContainer.schedulerNode
- SchedulerNode.updateRequest
- UpdateContainerRequest.public void removeFromOutstandingUpdate(org.apache.hadoop.yarn.server.scheduler.SchedulerRequestKey schedulerKey, org.apache.hadoop.yarn.api.records.Container container)
schedulerKey
- SchedulerRequestKey.container
- Container.public org.apache.hadoop.yarn.api.records.ContainerId matchContainerToOutstandingIncreaseReq(SchedulerNode node, org.apache.hadoop.yarn.server.scheduler.SchedulerRequestKey schedulerKey, RMContainer rmContainer)
node
- SchedulerNode.schedulerKey
- SchedulerRequestKey.rmContainer
- RMContainer.public RMContainer swapContainer(RMContainer tempRMContainer, RMContainer existingRMContainer, org.apache.hadoop.yarn.api.records.ContainerUpdateType updateType)
tempRMContainer
- Temp RMContainer.existingRMContainer
- Existing RMContainer.updateType
- Update Type.Copyright © 2008–2021 Apache Software Foundation. All rights reserved.