public class NMTokenCacheCompat
extends java.lang.Object
NMTokenCache
.Constructor and Description |
---|
NMTokenCacheCompat() |
Modifier and Type | Method and Description |
---|---|
static boolean |
containsToken(org.apache.hadoop.yarn.client.api.NMTokenCache nmTokenCache,
java.lang.String nodeId) |
static org.apache.hadoop.yarn.client.api.NMTokenCache |
getNMTokenCache()
Gets the Hadoop
NMTokenCache . |
public static org.apache.hadoop.yarn.client.api.NMTokenCache getNMTokenCache()
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.
public static boolean containsToken(org.apache.hadoop.yarn.client.api.NMTokenCache nmTokenCache, java.lang.String nodeId)