| Package | Description | 
|---|---|
| org.apache.hadoop.yarn.api.protocolrecords | |
| org.apache.hadoop.yarn.api.records | 
| Modifier and Type | Method and Description | 
|---|---|
| abstract List<NMToken> | AllocateResponse. getNMTokens()Get the list of NMTokens required for communicating with NM. | 
| abstract List<NMToken> | RegisterApplicationMasterResponse. getNMTokensFromPreviousAttempts()Get the list of NMTokens for communicating with the NMs where the
 containers of previous application attempts are running. | 
| Modifier and Type | Method and Description | 
|---|---|
| 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) | 
| AllocateResponse.AllocateResponseBuilder | AllocateResponse.AllocateResponseBuilder. nmTokens(List<NMToken> nmTokens)Set the  nmTokensof the response. | 
| abstract void | AllocateResponse. setNMTokens(List<NMToken> nmTokens) | 
| abstract void | RegisterApplicationMasterResponse. setNMTokensFromPreviousAttempts(List<NMToken> nmTokens)Set the list of NMTokens for communicating with the NMs where the the
 containers of previous application attempts are running. | 
| Modifier and Type | Method and Description | 
|---|---|
| static NMToken | NMToken. newInstance(NodeId nodeId,
           Token token) | 
Copyright © 2008–2023 Apache Software Foundation. All rights reserved.