コード例 #1
0
ファイル: NMClient.cs プロジェクト: orf53975/hadoop.net
 /// <summary>Set the NM Token cache of the <code>NMClient</code>.</summary>
 /// <remarks>
 /// Set the NM Token cache of the <code>NMClient</code>. This cache must be
 /// shared with the
 /// <see cref="AMRMClient{T}"/>
 /// that requested the containers managed
 /// by this <code>NMClient</code>
 /// <p>
 /// If a NM token cache is not set, the
 /// <see cref="NMTokenCache.GetSingleton()"/>
 /// singleton instance will be used.
 /// </remarks>
 /// <param name="nmTokenCache">the NM token cache to use.</param>
 public virtual void SetNMTokenCache(NMTokenCache nmTokenCache)
 {
     this.nmTokenCache = nmTokenCache;
 }
コード例 #2
0
 protected internal AMRMClient(string name)
     : base(name)
 {
     nmTokenCache = NMTokenCache.GetSingleton();
 }