@Public
@Stable
public abstract class NMToken
extends java.lang.Object
The NMToken is used for authenticating communication with
NodeManager
It is issued by ResourceMananger when ApplicationMaster
negotiates resource with ResourceManager and
validated on NodeManager side.
AllocateResponse.getNMTokens()| Constructor | Description |
|---|---|
NMToken() |
| Modifier and Type | Method | Description |
|---|---|---|
boolean |
equals(java.lang.Object obj) |
|
abstract NodeId |
getNodeId() |
Get the
NodeId of the NodeManager for which the NMToken
is used to authenticate. |
abstract Token |
getToken() |
Get the
Token used for authenticating with NodeManager |
int |
hashCode() |
|
static NMToken |
newInstance(NodeId nodeId,
Token token) |
|
abstract void |
setNodeId(NodeId nodeId) |
|
abstract void |
setToken(Token token) |
@Public @Stable public abstract NodeId getNodeId()
NodeId of the NodeManager for which the NMToken
is used to authenticate.NodeId of the NodeManager for which the
NMToken is used to authenticate.@Public @Stable public abstract void setNodeId(NodeId nodeId)
@Public @Stable public abstract Token getToken()
Token used for authenticating with NodeManagerToken used for authenticating with NodeManager@Public @Stable public abstract void setToken(Token token)
public int hashCode()
hashCode in class java.lang.Objectpublic boolean equals(java.lang.Object obj)
equals in class java.lang.ObjectCopyright © 2008–2025 Apache Software Foundation. All rights reserved.