Exemple #1
0
        public virtual void TestRefreshNodes()
        {
            resourceManager.GetClientRMService();
            RefreshNodesRequest request = recordFactory.NewRecordInstance <RefreshNodesRequest
                                                                           >();
            RefreshNodesResponse response = client.RefreshNodes(request);

            NUnit.Framework.Assert.IsNotNull(response);
        }
        /// <exception cref="Com.Google.Protobuf.ServiceException"/>
        public virtual YarnServerResourceManagerServiceProtos.RefreshNodesResponseProto RefreshNodes
            (RpcController controller, YarnServerResourceManagerServiceProtos.RefreshNodesRequestProto
            proto)
        {
            RefreshNodesRequestPBImpl request = new RefreshNodesRequestPBImpl(proto);

            try
            {
                RefreshNodesResponse response = real.RefreshNodes(request);
                return(((RefreshNodesResponsePBImpl)response).GetProto());
            }
            catch (YarnException e)
            {
                throw new ServiceException(e);
            }
            catch (IOException e)
            {
                throw new ServiceException(e);
            }
        }