Esempio n. 1
0
 /// <exception cref="Org.Apache.Hadoop.Yarn.Exceptions.YarnException"/>
 public override CancelDelegationTokenResponse CancelDelegationToken(CancelDelegationTokenRequest
                                                                     request)
 {
     this._enclosing.ResetStartFailoverFlag(true);
     // make sure failover has been triggered
     NUnit.Framework.Assert.IsTrue(this._enclosing.WaittingForFailOver());
     return(CancelDelegationTokenResponse.NewInstance());
 }
        /// <exception cref="Com.Google.Protobuf.ServiceException"/>
        public virtual SecurityProtos.CancelDelegationTokenResponseProto CancelDelegationToken
            (RpcController controller, SecurityProtos.CancelDelegationTokenRequestProto proto
            )
        {
            CancelDelegationTokenRequestPBImpl request = new CancelDelegationTokenRequestPBImpl
                                                             (proto);

            try
            {
                CancelDelegationTokenResponse response = real.CancelDelegationToken(request);
                return(((CancelDelegationTokenResponsePBImpl)response).GetProto());
            }
            catch (IOException e)
            {
                throw new ServiceException(e);
            }
        }