GetDelegationTokenResponse (Apache Hadoop YARN API 3.5.0 API)
Description: declaration: package: org.apache.hadoop.yarn.api.protocolrecords, class: GetDelegationTokenResponse

Package org.apache.hadoop.yarn.api.protocolrecords

# Class GetDelegationTokenResponse

java.lang.Object
org.apache.hadoop.yarn.api.protocolrecords.GetDelegationTokenResponse

@Public @Stable public abstract class GetDelegationTokenResponse extends Object
Response to a `GetDelegationTokenRequest` request from the client. The response contains the token that can be used by the containers to talk to ClientRMService.

- ## Constructor Summary

  Constructors
  Constructor
  Description
  `GetDelegationTokenResponse()`

- ## Method Summary

  Modifier and Type
  Method
  Description
  `abstract Token`
  `getRMDelegationToken()`
  The Delegation tokens have a identifier which maps to `AbstractDelegationTokenIdentifier`.
  `static GetDelegationTokenResponse`
  `newInstance(Token rmDTToken)`
  `abstract void`
  `setRMDelegationToken(Token rmDTToken)`

  ### Methods inherited from class java.lang.Object

  `clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait`

- ## Constructor Details

  - ### GetDelegationTokenResponse

    public GetDelegationTokenResponse()

- ## Method Details

  - ### newInstance

    @Private @Unstable public static GetDelegationTokenResponse newInstance(Token rmDTToken)

  - ### getRMDelegationToken

    @Public @Stable public abstract Token getRMDelegationToken()
    The Delegation tokens have a identifier which maps to `AbstractDelegationTokenIdentifier`.
    Returns:
      the delegation tokens

  - ### setRMDelegationToken

    @Private @Unstable public abstract void setRMDelegationToken(Token rmDTToken)