Class ResourceLocalizationRequest
java.lang.Object
org.apache.hadoop.yarn.api.protocolrecords.ResourceLocalizationRequest
The request sent by the ApplicationMaster to ask for localizing resources.
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionabstract ContainerIdGet theContainerIdof the container to localize resources.abstract Map<String,LocalResource> GetLocalResourcerequired by the container.static ResourceLocalizationRequestnewInstance(ContainerId containerId, Map<String, LocalResource> localResources) abstract voidsetContainerId(ContainerId containerId) Set theContainerIdof the container to localize resources.abstract voidsetLocalResources(Map<String, LocalResource> localResources) SetLocalResourcerequired by the container.
-
Constructor Details
-
ResourceLocalizationRequest
public ResourceLocalizationRequest()
-
-
Method Details
-
newInstance
@Public @Unstable public static ResourceLocalizationRequest newInstance(ContainerId containerId, Map<String, LocalResource> localResources) -
getContainerId
Get theContainerIdof the container to localize resources.- Returns:
ContainerIdof the container to localize resources.
-
setContainerId
Set theContainerIdof the container to localize resources.- Parameters:
containerId- the containerId of the container.
-
getLocalResources
GetLocalResourcerequired by the container.- Returns:
- all
LocalResourcerequired by the container
-
setLocalResources
SetLocalResourcerequired by the container. All pre-existing Map entries are cleared before adding the new Map- Parameters:
localResources-LocalResourcerequired by the container
-