コード例 #1
0
ファイル: HftpFileSystem.cs プロジェクト: orf53975/hadoop.net
            /// <exception cref="System.Exception"/>
            public Void Run()
            {
                IPEndPoint serviceAddr = SecurityUtil.GetTokenServiceAddr(token);

                DelegationTokenFetcher.CancelDelegationToken(this._enclosing.connectionFactory, DFSUtil
                                                             .CreateUri(this._enclosing.GetUnderlyingProtocol(), serviceAddr), (Org.Apache.Hadoop.Security.Token.Token
                                                                                                                                <DelegationTokenIdentifier>)token);
                return(null);
            }
コード例 #2
0
 public virtual void TestCancelTokenFromHttp()
 {
     bootstrap = StartHttpServer(httpPort, testToken, serviceUrl);
     DelegationTokenFetcher.CancelDelegationToken(connectionFactory, serviceUrl, testToken
                                                  );
     if (assertionError != null)
     {
         throw assertionError;
     }
 }
コード例 #3
0
 public virtual void ExpectedTokenCancelFail()
 {
     try
     {
         DelegationTokenFetcher.CancelDelegationToken(connectionFactory, serviceUrl, testToken
                                                      );
         NUnit.Framework.Assert.Fail("Token fetcher shouldn't be able to cancel tokens in absense of NN"
                                     );
     }
     catch (IOException)
     {
     }
 }