org.apache.hadoop.yarn.client.api
Class NMTokenCache

java.lang.Object
  extended by org.apache.hadoop.yarn.client.api.NMTokenCache

@InterfaceAudience.Public
@InterfaceStability.Evolving
public class NMTokenCache
extends Object

It manages NMTokens required for communicating with Node manager. Its a static token cache.


Constructor Summary
NMTokenCache()
           
 
Method Summary
static Token getNMToken(String nodeAddr)
          Returns NMToken, null if absent
static void setNMToken(String nodeAddr, Token token)
          Sets the NMToken for node address
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

NMTokenCache

public NMTokenCache()
Method Detail

getNMToken

@InterfaceAudience.Public
@InterfaceStability.Evolving
public static Token getNMToken(String nodeAddr)
Returns NMToken, null if absent

Parameters:
nodeAddr -
Returns:
Token NMToken required for communicating with node manager

setNMToken

@InterfaceAudience.Public
@InterfaceStability.Evolving
public static void setNMToken(String nodeAddr,
                                                                                   Token token)
Sets the NMToken for node address

Parameters:
nodeAddr - node address (host:port)
token - NMToken


Copyright © 2013 Apache Software Foundation. All Rights Reserved.