| Package | Description | 
|---|---|
| org.apache.hadoop.yarn.ams | Public api for Application Master Service interceptors. | 
| org.apache.hadoop.yarn.api.protocolrecords | |
| org.apache.hadoop.yarn.api.records | 
| Modifier and Type | Method and Description | 
|---|---|
| static void | ApplicationMasterServiceUtils. addToAllocatedContainers(AllocateResponse allocateResponse,
                        List<Container> allocatedContainers)Add allocated containers to  AllocateResponse. | 
| static void | ApplicationMasterServiceUtils. addToUpdatedContainers(AllocateResponse allocateResponse,
                      ContainerUpdateType updateType,
                      List<Container> updatedContainers)Add updated containers to  AllocateResponse. | 
| Modifier and Type | Method and Description | 
|---|---|
| abstract List<Container> | AllocateResponse. getAllocatedContainers()Get the list of newly allocated  Containerby theResourceManager. | 
| abstract List<Container> | RegisterApplicationMasterResponse. getContainersFromPreviousAttempts()
 Get the list of running containers as viewed by
  ResourceManagerfrom previous application attempts. | 
| abstract List<Container> | AllocateResponse. getContainersFromPreviousAttempts()Get the list of running containers as viewed by
  ResourceManagerfrom previous application attempts which
 have not been reported to the Application Master yet. | 
| Modifier and Type | Method and Description | 
|---|---|
| AllocateResponse.AllocateResponseBuilder | AllocateResponse.AllocateResponseBuilder. allocatedContainers(List<Container> allocatedContainers)Set the  allocatedContainersof the response. | 
| AllocateResponse.AllocateResponseBuilder | AllocateResponse.AllocateResponseBuilder. containersFromPreviousAttempt(List<Container> containersFromPreviousAttempt)Set the  containersFromPreviousAttemptof the response. | 
| static AllocateResponse | AllocateResponse. newInstance(int responseId,
           List<ContainerStatus> completedContainers,
           List<Container> allocatedContainers,
           List<NodeReport> updatedNodes,
           Resource availResources,
           AMCommand command,
           int numClusterNodes,
           PreemptionMessage preempt,
           List<NMToken> nmTokens) | 
| static AllocateResponse | AllocateResponse. newInstance(int responseId,
           List<ContainerStatus> completedContainers,
           List<Container> allocatedContainers,
           List<NodeReport> updatedNodes,
           Resource availResources,
           AMCommand command,
           int numClusterNodes,
           PreemptionMessage preempt,
           List<NMToken> nmTokens,
           CollectorInfo collectorInfo) | 
| static AllocateResponse | AllocateResponse. newInstance(int responseId,
           List<ContainerStatus> completedContainers,
           List<Container> allocatedContainers,
           List<NodeReport> updatedNodes,
           Resource availResources,
           AMCommand command,
           int numClusterNodes,
           PreemptionMessage preempt,
           List<NMToken> nmTokens,
           Token amRMToken,
           List<UpdatedContainer> updatedContainers) | 
| static AllocateResponse | AllocateResponse. newInstance(int responseId,
           List<ContainerStatus> completedContainers,
           List<Container> allocatedContainers,
           List<NodeReport> updatedNodes,
           Resource availResources,
           AMCommand command,
           int numClusterNodes,
           PreemptionMessage preempt,
           List<NMToken> nmTokens,
           Token amRMToken,
           List<UpdatedContainer> updatedContainers,
           CollectorInfo collectorInfo) | 
| static RegisterApplicationMasterResponse | RegisterApplicationMasterResponse. newInstance(Resource minCapability,
           Resource maxCapability,
           Map<ApplicationAccessType,String> acls,
           ByteBuffer key,
           List<Container> containersFromPreviousAttempt,
           String queue,
           List<NMToken> nmTokensFromPreviousAttempts) | 
| abstract void | AllocateResponse. setAllocatedContainers(List<Container> containers)Set the list of newly allocated  Containerby theResourceManager. | 
| abstract void | RegisterApplicationMasterResponse. setContainersFromPreviousAttempts(List<Container> containersFromPreviousAttempt)Set the list of running containers as viewed by
  ResourceManagerfrom previous application attempts. | 
| abstract void | AllocateResponse. setContainersFromPreviousAttempts(List<Container> containersFromPreviousAttempt)Set the list of running containers as viewed by
  ResourceManagerfrom previous application attempts which have
 not been reported to the Application Master yet. | 
| Modifier and Type | Method and Description | 
|---|---|
| abstract Container | UpdatedContainer. getContainer()Get the  Container. | 
| static Container | Container. newInstance(ContainerId containerId,
           NodeId nodeId,
           String nodeHttpAddress,
           Resource resource,
           Priority priority,
           Token containerToken) | 
| static Container | Container. newInstance(ContainerId containerId,
           NodeId nodeId,
           String nodeHttpAddress,
           Resource resource,
           Priority priority,
           Token containerToken,
           ExecutionType executionType) | 
| Modifier and Type | Method and Description | 
|---|---|
| static UpdatedContainer | UpdatedContainer. newInstance(ContainerUpdateType updateType,
           Container container)Static Factory method. | 
| abstract void | UpdatedContainer. setContainer(Container container)Set the  Container. | 
Copyright © 2008–2023 Apache Software Foundation. All rights reserved.