Class ApplicationMasterServiceUtils

java.lang.Object
org.apache.hadoop.yarn.ams.ApplicationMasterServiceUtils

public final class ApplicationMasterServiceUtils extends Object
Utility methods to be used by ApplicationMasterServiceProcessor.
  • Method Details

    • addToUpdateContainerErrors

      public static void addToUpdateContainerErrors(AllocateResponse allocateResponse, List<UpdateContainerError> updateContainerErrors)
      Add update container errors to AllocateResponse.
      Parameters:
      allocateResponse - Allocate Response.
      updateContainerErrors - Errors.
    • addToUpdatedContainers

      public static void addToUpdatedContainers(AllocateResponse allocateResponse, ContainerUpdateType updateType, List<Container> updatedContainers)
      Add updated containers to AllocateResponse.
      Parameters:
      allocateResponse - Allocate Response.
      updateType - Update Type.
      updatedContainers - Updated Containers.
    • addToAllocatedContainers

      public static void addToAllocatedContainers(AllocateResponse allocateResponse, List<Container> allocatedContainers)
      Add allocated containers to AllocateResponse.
      Parameters:
      allocateResponse - Allocate Response.
      allocatedContainers - Allocated Containers.
    • addToRejectedSchedulingRequests

      public static void addToRejectedSchedulingRequests(AllocateResponse allocateResponse, List<RejectedSchedulingRequest> rejectedRequests)
      Add rejected Scheduling Requests to AllocateResponse.
      Parameters:
      allocateResponse - Allocate Response.
      rejectedRequests - Rejected SchedulingRequests.