Uses of Class org.apache.hadoop.yarn.api.records.Token (Apache Hadoop Main 3.5.0 API)
Description: use: package: org.apache.hadoop.yarn.api.records, class: Token

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

Packages that use Token
Package
Description
org.apache.hadoop.mapreduce.v2.api.protocolrecords
org.apache.hadoop.yarn.api.protocolrecords
Licensed to the Apache Software Foundation (ASF) under one or more contributor license agreements.
org.apache.hadoop.yarn.api.records
Licensed to the Apache Software Foundation (ASF) under one or more contributor license agreements.
org.apache.hadoop.yarn.client.api
org.apache.hadoop.yarn.util
Licensed to the Apache Software Foundation (ASF) under one or more contributor license agreements.

- ## Uses of Token in org.apache.hadoop.mapreduce.v2.api.protocolrecords

  Methods in org.apache.hadoop.mapreduce.v2.api.protocolrecords that return Token
  Modifier and Type
  Method
  Description
  `Token`
  CancelDelegationTokenRequest.`getDelegationToken()`
  `Token`
  RenewDelegationTokenRequest.`getDelegationToken()`
  Methods in org.apache.hadoop.mapreduce.v2.api.protocolrecords with parameters of type Token
  Modifier and Type
  Method
  Description
  `void`
  CancelDelegationTokenRequest.`setDelegationToken(Token dToken)`
  `void`
  RenewDelegationTokenRequest.`setDelegationToken(Token dToken)`

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

  Methods in org.apache.hadoop.yarn.api.protocolrecords that return Token
  Modifier and Type
  Method
  Description
  `abstract Token`
  AllocateResponse.`getAMRMToken()`
  The AMRMToken that belong to this attempt
  `abstract Token`
  StartContainerRequest.`getContainerToken()`
  Get the container token to be used for authorization during starting container.
  `abstract Token`
  GetDelegationTokenResponse.`getRMDelegationToken()`
  The Delegation tokens have a identifier which maps to `AbstractDelegationTokenIdentifier`.
  Methods in org.apache.hadoop.yarn.api.protocolrecords that return types with arguments of type Token
  Modifier and Type
  Method
  Description
  `abstract List<Token>`
  IncreaseContainersResourceRequest.`getContainersToIncrease()`
  Get a list of container tokens to be used for authorization during container resource increase.
  `abstract List<Token>`
  ContainerUpdateRequest.`getContainersToUpdate()`
  Get a list of container tokens to be used for authorization during container resource update.
  Methods in org.apache.hadoop.yarn.api.protocolrecords with parameters of type Token
  Modifier and Type
  Method
  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, 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 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, org.apache.hadoop.yarn.api.records.EnhancedHeadroom enhancedHeadroom)`
  `static GetDelegationTokenResponse`
  GetDelegationTokenResponse.`newInstance(Token rmDTToken)`
  `static StartContainerRequest`
  StartContainerRequest.`newInstance(ContainerLaunchContext context, Token container)`
  `abstract void`
  AllocateResponse.`setAMRMToken(Token amRMToken)`
  `abstract void`
  StartContainerRequest.`setContainerToken(Token container)`
  `abstract void`
  GetDelegationTokenResponse.`setRMDelegationToken(Token rmDTToken)`
  Method parameters in org.apache.hadoop.yarn.api.protocolrecords with type arguments of type Token
  Modifier and Type
  Method
  Description
  `static ContainerUpdateRequest`
  ContainerUpdateRequest.`newInstance(List<Token> containersToIncrease)`
  `static IncreaseContainersResourceRequest`
  IncreaseContainersResourceRequest.`newInstance(List<Token> containersToIncrease)`
  `abstract void`
  IncreaseContainersResourceRequest.`setContainersToIncrease(List<Token> containersToIncrease)`
  Set container tokens to be used during container resource increase.
  `abstract void`
  ContainerUpdateRequest.`setContainersToUpdate(List<Token> containersToUpdate)`
  Set container tokens to be used during container resource increase.

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

  Methods in org.apache.hadoop.yarn.api.records that return Token
  Modifier and Type
  Method
  Description
  `abstract Token`
  ApplicationReport.`getAMRMToken()`
  Get the AMRM token of the application.
  `abstract Token`
  ApplicationReport.`getClientToAMToken()`
  Get the client token for communicating with the `ApplicationMaster`.
  `abstract Token`
  CollectorInfo.`getCollectorToken()`
  Get delegation token for app collector which AM will use to publish entities.
  `abstract Token`
  Container.`getContainerToken()`
  Get the `ContainerToken` for the container.
  `abstract Token`
  NMToken.`getToken()`
  Get the `Token` used for authenticating with `NodeManager`
  `static Token`
  Token.`newInstance(byte[] identifier, String kind, byte[] password, String service)`
  Methods in org.apache.hadoop.yarn.api.records with parameters of type Token
  Modifier and Type
  Method
  Description
  `static ApplicationReport`
  ApplicationReport.`newInstance(ApplicationId applicationId, ApplicationAttemptId applicationAttemptId, String user, String queue, String name, String host, int rpcPort, Token clientToAMToken, YarnApplicationState state, String diagnostics, String url, long startTime, long submitTime, long launchTime, long finishTime, FinalApplicationStatus finalStatus, ApplicationResourceUsageReport appResources, String origTrackingUrl, float progress, String applicationType, Token amRmToken)`
  `static ApplicationReport`
  ApplicationReport.`newInstance(ApplicationId applicationId, ApplicationAttemptId applicationAttemptId, String user, String queue, String name, String host, int rpcPort, Token clientToAMToken, YarnApplicationState state, String diagnostics, String url, long startTime, long submitTime, long launchTime, long finishTime, FinalApplicationStatus finalStatus, ApplicationResourceUsageReport appResources, String origTrackingUrl, float progress, String applicationType, Token amRmToken, Set<String> tags, boolean unmanagedApplication, Priority priority, String appNodeLabelExpression, String amNodeLabelExpression)`
  `static ApplicationReport`
  ApplicationReport.`newInstance(ApplicationId applicationId, ApplicationAttemptId applicationAttemptId, String user, String queue, String name, String host, int rpcPort, Token clientToAMToken, YarnApplicationState state, String diagnostics, String url, long startTime, long launchTime, long finishTime, FinalApplicationStatus finalStatus, ApplicationResourceUsageReport appResources, String origTrackingUrl, float progress, String applicationType, Token amRmToken)`
  `static ApplicationReport`
  ApplicationReport.`newInstance(ApplicationId applicationId, ApplicationAttemptId applicationAttemptId, String user, String queue, String name, String host, int rpcPort, Token clientToAMToken, YarnApplicationState state, String diagnostics, String url, long startTime, long launchTime, long finishTime, FinalApplicationStatus finalStatus, ApplicationResourceUsageReport appResources, String origTrackingUrl, float progress, String applicationType, Token amRmToken, Set<String> tags, boolean unmanagedApplication, Priority priority, String appNodeLabelExpression, String amNodeLabelExpression)`
  `static ApplicationReport`
  ApplicationReport.`newInstance(ApplicationId applicationId, ApplicationAttemptId applicationAttemptId, String user, String queue, String name, String host, int rpcPort, Token clientToAMToken, YarnApplicationState state, String diagnostics, String url, long startTime, long finishTime, FinalApplicationStatus finalStatus, ApplicationResourceUsageReport appResources, String origTrackingUrl, float progress, String applicationType, Token amRmToken, Set<String> tags, boolean unmanagedApplication, Priority priority, String appNodeLabelExpression, String amNodeLabelExpression)`
  `static CollectorInfo`
  CollectorInfo.`newInstance(String collectorAddr, Token token)`
  `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)`
  `static NMToken`
  NMToken.`newInstance(NodeId nodeId, Token token)`
  `abstract void`
  ApplicationReport.`setAMRMToken(Token amRmToken)`
  `abstract void`
  ApplicationReport.`setClientToAMToken(Token clientToAMToken)`
  `abstract void`
  CollectorInfo.`setCollectorToken(Token token)`
  `abstract void`
  Container.`setContainerToken(Token containerToken)`
  `abstract void`
  NMToken.`setToken(Token token)`

- ## Uses of Token in org.apache.hadoop.yarn.client.api

  Methods in org.apache.hadoop.yarn.client.api that return Token
  Modifier and Type
  Method
  Description
  `static Token`
  NMTokenCache.`getNMToken(String nodeAddr)`
  Returns NMToken, null if absent.
  `abstract Token`
  YarnClient.`getRMDelegationToken(Text renewer)`
  Get a delegation token so as to be able to talk to YARN using those tokens.
  `Token`
  NMTokenCache.`getToken(String nodeAddr)`
  Returns NMToken, null if absent
  Methods in org.apache.hadoop.yarn.client.api with parameters of type Token
  Modifier and Type
  Method
  Description
  `static void`
  NMTokenCache.`setNMToken(String nodeAddr, Token token)`
  Sets the NMToken for node address only in the singleton obtained from `NMTokenCache.getSingleton()`.
  `void`
  NMTokenCache.`setToken(String nodeAddr, Token token)`
  Sets the NMToken for node address

- ## Uses of Token in org.apache.hadoop.yarn.util

  Methods in org.apache.hadoop.yarn.util with parameters of type Token
  Modifier and Type
  Method
  Description
  `static <T extends TokenIdentifier>
  Token<T>`
  ConverterUtils.`convertFromYarn(Token protoToken, InetSocketAddress serviceAddr)`
  Convert a protobuf token into a rpc token and set its service.
  `static <T extends TokenIdentifier>
  Token<T>`
  ConverterUtils.`convertFromYarn(Token protoToken, Text service)`
  Convert a protobuf token into a rpc token and set its service.