|
Spring for Apache Hadoop | ||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object org.springframework.yarn.support.compat.NMTokenCacheCompat
public class NMTokenCacheCompat
Compat class for NMTokenCache
.
Constructor Summary | |
---|---|
NMTokenCacheCompat()
|
Method Summary | |
---|---|
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 . |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public NMTokenCacheCompat()
Method Detail |
---|
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)
|
Spring for Apache Hadoop | ||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |