Esempio n. 1
0
        public virtual void TestRefreshServiceAcls()
        {
            RefreshServiceAclsRequest request = recordFactory.NewRecordInstance <RefreshServiceAclsRequest
                                                                                 >();
            RefreshServiceAclsResponse response = client.RefreshServiceAcls(request);

            NUnit.Framework.Assert.IsNotNull(response);
        }
Esempio n. 2
0
        /// <exception cref="System.IO.IOException"/>
        /// <exception cref="Org.Apache.Hadoop.Yarn.Exceptions.YarnException"/>
        private int RefreshServiceAcls()
        {
            // Refresh the service acls
            ResourceManagerAdministrationProtocol adminProtocol = CreateAdminProtocol();
            RefreshServiceAclsRequest             request       = recordFactory.NewRecordInstance <RefreshServiceAclsRequest
                                                                                                   >();

            adminProtocol.RefreshServiceAcls(request);
            return(0);
        }
        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);
            }
        }