Class IncreaseContainersResourceRequest
java.lang.Object
org.apache.hadoop.yarn.api.protocolrecords.IncreaseContainersResourceRequest
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 increase.newInstance(List<Token> containersToIncrease) abstract voidsetContainersToIncrease(List<Token> containersToIncrease) Set container tokens to be used during container resource increase.
-
Constructor Details
-
IncreaseContainersResourceRequest
public IncreaseContainersResourceRequest()
-
-
Method Details
-
newInstance
@Public @Unstable public static IncreaseContainersResourceRequest newInstance(List<Token> containersToIncrease) -
getContainersToIncrease
Get a list of container tokens to be used for authorization during container resource increase.Note:
NMTokenwill be used for authenticating communication withNodeManager.- Returns:
- the list of container tokens to be used for authorization during container resource increase.
- See Also:
-
setContainersToIncrease
Set container tokens to be used during container resource increase. The token is acquired fromAllocateResponse.getIncreasedContainers. The token contains the container id and resource capability required for container resource increase.- Parameters:
containersToIncrease- the list of container tokens to be used for container resource increase.
-