Beispiel #1
0
        public virtual void TestUpdateNodeResource()
        {
            UpdateNodeResourceRequest request = recordFactory.NewRecordInstance <UpdateNodeResourceRequest
                                                                                 >();
            UpdateNodeResourceResponse response = client.UpdateNodeResource(request);

            NUnit.Framework.Assert.IsNotNull(response);
        }
        UpdateNodeResource(RpcController controller, YarnServerResourceManagerServiceProtos.UpdateNodeResourceRequestProto
                           proto)
        {
            UpdateNodeResourceRequestPBImpl request = new UpdateNodeResourceRequestPBImpl(proto
                                                                                          );

            try
            {
                UpdateNodeResourceResponse response = real.UpdateNodeResource(request);
                return(((UpdateNodeResourceResponsePBImpl)response).GetProto());
            }
            catch (YarnException e)
            {
                throw new ServiceException(e);
            }
            catch (IOException e)
            {
                throw new ServiceException(e);
            }
        }