@InterfaceAudience.Public @InterfaceStability.Evolving public class NMTokenCache extends Object
Constructor and Description |
---|
NMTokenCache() |
Modifier and Type | Method and Description |
---|---|
static void |
clearCache()
It will remove all the nm tokens from its cache
|
static boolean |
containsNMToken(String nodeAddr)
Returns true if NMToken is present in cache.
|
static Token |
getNMToken(String nodeAddr)
Returns NMToken, null if absent
|
static int |
numberOfNMTokensInCache()
Returns the number of NMTokens present in cache.
|
static void |
removeNMToken(String nodeAddr)
Removes NMToken for specified node manager
|
static void |
setNMToken(String nodeAddr,
Token token)
Sets the NMToken for node address
|
@InterfaceAudience.Public @InterfaceStability.Evolving public static Token getNMToken(String nodeAddr)
nodeAddr
- Token
NMToken required for communicating with node
manager@InterfaceAudience.Public @InterfaceStability.Evolving public static void setNMToken(String nodeAddr, Token token)
nodeAddr
- node address (host:port)token
- NMToken@InterfaceAudience.Private public static boolean containsNMToken(String nodeAddr)
@InterfaceAudience.Private public static int numberOfNMTokensInCache()
@InterfaceAudience.Private public static void removeNMToken(String nodeAddr)
nodeAddr
- node address (host:port)@InterfaceAudience.Private public static void clearCache()
Copyright © 2013 Apache Software Foundation. All rights reserved.