Esempio n. 1
0
        public virtual void TestRefreshUserToGroupsMappings()
        {
            RefreshUserToGroupsMappingsRequest request = recordFactory.NewRecordInstance <RefreshUserToGroupsMappingsRequest
                                                                                          >();
            RefreshUserToGroupsMappingsResponse response = client.RefreshUserToGroupsMappings
                                                               (request);

            NUnit.Framework.Assert.IsNotNull(response);
        }
        RefreshUserToGroupsMappings(RpcController controller, YarnServerResourceManagerServiceProtos.RefreshUserToGroupsMappingsRequestProto
                                    proto)
        {
            RefreshUserToGroupsMappingsRequestPBImpl request = new RefreshUserToGroupsMappingsRequestPBImpl
                                                                   (proto);

            try
            {
                RefreshUserToGroupsMappingsResponse response = real.RefreshUserToGroupsMappings(request
                                                                                                );
                return(((RefreshUserToGroupsMappingsResponsePBImpl)response).GetProto());
            }
            catch (YarnException e)
            {
                throw new ServiceException(e);
            }
            catch (IOException e)
            {
                throw new ServiceException(e);
            }
        }