示例#1
0
 GetProto()
 {
     MergeLocalToProto();
     proto = viaProto ? proto : ((YarnServerResourceManagerServiceProtos.UpdateNodeResourceRequestProto
                                  )builder.Build());
     viaProto = true;
     return(proto);
 }
示例#2
0
 private void MergeLocalToProto()
 {
     if (viaProto)
     {
         MaybeInitBuilder();
     }
     MergeLocalToBuilder();
     proto = ((YarnServerResourceManagerServiceProtos.UpdateNodeResourceRequestProto)builder
              .Build());
     viaProto = true;
 }
示例#3
0
 /// <exception cref="Org.Apache.Hadoop.Yarn.Exceptions.YarnException"/>
 /// <exception cref="System.IO.IOException"/>
 public virtual UpdateNodeResourceResponse UpdateNodeResource(UpdateNodeResourceRequest
                                                              request)
 {
     YarnServerResourceManagerServiceProtos.UpdateNodeResourceRequestProto requestProto
         = ((UpdateNodeResourceRequestPBImpl)request).GetProto();
     try
     {
         return(new UpdateNodeResourceResponsePBImpl(proxy.UpdateNodeResource(null, requestProto
                                                                              )));
     }
     catch (ServiceException e)
     {
         RPCUtil.UnwrapAndThrowException(e);
         return(null);
     }
 }
        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);
            }
        }
示例#5
0
 public UpdateNodeResourceRequestPBImpl(YarnServerResourceManagerServiceProtos.UpdateNodeResourceRequestProto
                                        proto)
 {
     this.proto = proto;
     viaProto   = true;
 }