コード例 #1
0
        public virtual void TestRefreshServiceAcls()
        {
            RefreshServiceAclsRequest request = recordFactory.NewRecordInstance <RefreshServiceAclsRequest
                                                                                 >();
            RefreshServiceAclsResponse response = client.RefreshServiceAcls(request);

            NUnit.Framework.Assert.IsNotNull(response);
        }
        RefreshServiceAcls(RpcController controller, YarnServerResourceManagerServiceProtos.RefreshServiceAclsRequestProto
                           proto)
        {
            RefreshServiceAclsRequestPBImpl request = new RefreshServiceAclsRequestPBImpl(proto
                                                                                          );

            try
            {
                RefreshServiceAclsResponse response = real.RefreshServiceAcls(request);
                return(((RefreshServiceAclsResponsePBImpl)response).GetProto());
            }
            catch (YarnException e)
            {
                throw new ServiceException(e);
            }
            catch (IOException e)
            {
                throw new ServiceException(e);
            }
        }