org.springframework.yarn.support.compat
Class NMTokenCacheCompat
java.lang.Object
org.springframework.yarn.support.compat.NMTokenCacheCompat
public class NMTokenCacheCompat
- extends Object
Compat class for NMTokenCache.
- Author:
- Janne Valkealahti, Thomas Risberg
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
NMTokenCacheCompat
public NMTokenCacheCompat()
getNMTokenCache
public static NMTokenCache getNMTokenCache()
- Gets the Hadoop
NMTokenCache. Access token cache via singleton
method if exists, otherwise assumes that class is hadoop vanilla
implementation with static methods where we can just use default
constructor and further access for those static method would
got via instance itself.
This is due to a fact that i.e. cloudera modified this class by
removing static methods and made access to it via singleton pattern.
- Returns:
- the token cache
containsToken
public static boolean containsToken(NMTokenCache nmTokenCache,
String nodeId)