Пример #1
0
 /// <summary>Remove the associated renew action from the queue</summary>
 /// <exception cref="System.IO.IOException"/>
 public virtual void RemoveRenewAction <T>(T fs)
     where T : FileSystem
 {
     DelegationTokenRenewer.RenewAction <T> action = new DelegationTokenRenewer.RenewAction
                                                     <T>(fs);
     if (queue.Remove(action))
     {
         try
         {
             action.Cancel();
         }
         catch (Exception ie)
         {
             Log.Error("Interrupted while canceling token for " + fs.GetUri() + "filesystem");
             if (Log.IsDebugEnabled())
             {
                 Log.Debug(ie.GetStackTrace());
             }
         }
     }
 }