## Uses of Class
org.apache.hadoop.yarn.api.records.NMToken

- Packages that use NMToken
  Package | Description
  --- | ---
  org.apache.hadoop.yarn.api.protocolrecords |
  org.apache.hadoop.yarn.api.records |

- - ### Uses of NMToken in org.apache.hadoop.yarn.api.protocolrecords

    Methods in org.apache.hadoop.yarn.api.protocolrecords that return types with arguments of type NMToken
    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.

    Method parameters in org.apache.hadoop.yarn.api.protocolrecords with type arguments of type NMToken
    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 `nmTokens` of 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.

  - ### Uses of NMToken in org.apache.hadoop.yarn.api.records

    Methods in org.apache.hadoop.yarn.api.records that return NMToken
    Modifier and Type | Method and Description
    --- | ---
    `static NMToken` | NMToken.`newInstance(NodeId nodeId, Token token)`

Copyright © 2008–2022 Apache Software Foundation. All rights reserved.