Class ContainerUpdateRequest
java.lang.Object
org.apache.hadoop.yarn.api.protocolrecords.ContainerUpdateRequest
The request sent by Application Master to the
Node Manager to change the resource quota of a container.
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionGet a list of container tokens to be used for authorization during container resource update.static ContainerUpdateRequestnewInstance(List<Token> containersToIncrease) abstract voidsetContainersToUpdate(List<Token> containersToUpdate) Set container tokens to be used during container resource increase.
-
Constructor Details
-
ContainerUpdateRequest
public ContainerUpdateRequest()
-
-
Method Details
-
newInstance
@Public @Unstable public static ContainerUpdateRequest newInstance(List<Token> containersToIncrease) -
getContainersToUpdate
Get a list of container tokens to be used for authorization during container resource update.Note:
NMTokenwill be used for authenticating communication withNodeManager.- Returns:
- the list of container tokens to be used for authorization during container resource update.
- See Also:
-
setContainersToUpdate
Set container tokens to be used during container resource increase. The token is acquired fromAllocateResponse.getUpdatedContainers. The token contains the container id and resource capability required for container resource update.- Parameters:
containersToUpdate- the list of container tokens to be used for container resource increase.
-