Spring for Apache Hadoop

org.springframework.yarn.support.compat
Class NMTokenCacheCompat

java.lang.Object
  extended by org.springframework.yarn.support.compat.NMTokenCacheCompat

public class NMTokenCacheCompat
extends java.lang.Object

Compat class for NMTokenCache.

Author:
Janne Valkealahti

Constructor Summary
NMTokenCacheCompat()
           
 
Method Summary
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

NMTokenCacheCompat

public NMTokenCacheCompat()
Method Detail

getNMTokenCache

public static org.apache.hadoop.yarn.client.api.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

Spring for Apache Hadoop