Package org.apache.hadoop.yarn.ams
Class ApplicationMasterServiceUtils
java.lang.Object
org.apache.hadoop.yarn.ams.ApplicationMasterServiceUtils
Utility methods to be used by
ApplicationMasterServiceProcessor.-
Method Summary
Modifier and TypeMethodDescriptionstatic voidaddToAllocatedContainers(AllocateResponse allocateResponse, List<Container> allocatedContainers) Add allocated containers toAllocateResponse.static voidaddToRejectedSchedulingRequests(AllocateResponse allocateResponse, List<RejectedSchedulingRequest> rejectedRequests) Add rejected Scheduling Requests toAllocateResponse.static voidaddToUpdateContainerErrors(AllocateResponse allocateResponse, List<UpdateContainerError> updateContainerErrors) Add update container errors toAllocateResponse.static voidaddToUpdatedContainers(AllocateResponse allocateResponse, ContainerUpdateType updateType, List<Container> updatedContainers) Add updated containers toAllocateResponse.
-
Method Details
-
addToUpdateContainerErrors
public static void addToUpdateContainerErrors(AllocateResponse allocateResponse, List<UpdateContainerError> updateContainerErrors) Add update container errors toAllocateResponse.- Parameters:
allocateResponse- Allocate Response.updateContainerErrors- Errors.
-
addToUpdatedContainers
public static void addToUpdatedContainers(AllocateResponse allocateResponse, ContainerUpdateType updateType, List<Container> updatedContainers) Add updated containers toAllocateResponse.- Parameters:
allocateResponse- Allocate Response.updateType- Update Type.updatedContainers- Updated Containers.
-
addToAllocatedContainers
public static void addToAllocatedContainers(AllocateResponse allocateResponse, List<Container> allocatedContainers) Add allocated containers toAllocateResponse.- Parameters:
allocateResponse- Allocate Response.allocatedContainers- Allocated Containers.
-
addToRejectedSchedulingRequests
public static void addToRejectedSchedulingRequests(AllocateResponse allocateResponse, List<RejectedSchedulingRequest> rejectedRequests) Add rejected Scheduling Requests toAllocateResponse.- Parameters:
allocateResponse- Allocate Response.rejectedRequests- Rejected SchedulingRequests.
-