GetProto() { MergeLocalToProto(); proto = viaProto ? proto : ((YarnServerResourceManagerServiceProtos.UpdateNodeResourceRequestProto )builder.Build()); viaProto = true; return(proto); }
private void MergeLocalToProto() { if (viaProto) { MaybeInitBuilder(); } MergeLocalToBuilder(); proto = ((YarnServerResourceManagerServiceProtos.UpdateNodeResourceRequestProto)builder .Build()); viaProto = true; }
/// <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); } }
public UpdateNodeResourceRequestPBImpl(YarnServerResourceManagerServiceProtos.UpdateNodeResourceRequestProto proto) { this.proto = proto; viaProto = true; }