Class ResourceLocalizationRequest

java.lang.Object
org.apache.hadoop.yarn.api.protocolrecords.ResourceLocalizationRequest

@Public @Unstable public abstract class ResourceLocalizationRequest extends Object
The request sent by the ApplicationMaster to ask for localizing resources.
  • Constructor Details

    • ResourceLocalizationRequest

      public ResourceLocalizationRequest()
  • Method Details

    • newInstance

      @Public @Unstable public static ResourceLocalizationRequest newInstance(ContainerId containerId, Map<String,LocalResource> localResources)
    • getContainerId

      @Public @Unstable public abstract ContainerId getContainerId()
      Get the ContainerId of the container to localize resources.
      Returns:
      ContainerId of the container to localize resources.
    • setContainerId

      @Private @Unstable public abstract void setContainerId(ContainerId containerId)
      Set the ContainerId of the container to localize resources.
      Parameters:
      containerId - the containerId of the container.
    • getLocalResources

      @Public @Unstable public abstract Map<String,LocalResource> getLocalResources()
      Get LocalResource required by the container.
      Returns:
      all LocalResource required by the container
    • setLocalResources

      @Private @Unstable public abstract void setLocalResources(Map<String,LocalResource> localResources)
      Set LocalResource required by the container. All pre-existing Map entries are cleared before adding the new Map
      Parameters:
      localResources - LocalResource required by the container