public virtual YarnServiceProtos.StartContainersRequestProto GetProto() { MergeLocalToProto(); proto = viaProto ? proto : ((YarnServiceProtos.StartContainersRequestProto)builder .Build()); viaProto = true; return(proto); }
private void MergeLocalToProto() { if (viaProto) { MaybeInitBuilder(); } MergeLocalToBuilder(); proto = ((YarnServiceProtos.StartContainersRequestProto)builder.Build()); viaProto = true; }
/// <exception cref="Org.Apache.Hadoop.Yarn.Exceptions.YarnException"/> /// <exception cref="System.IO.IOException"/> public virtual StartContainersResponse StartContainers(StartContainersRequest requests ) { YarnServiceProtos.StartContainersRequestProto requestProto = ((StartContainersRequestPBImpl )requests).GetProto(); try { return(new StartContainersResponsePBImpl(proxy.StartContainers(null, requestProto ))); } catch (ServiceException e) { RPCUtil.UnwrapAndThrowException(e); return(null); } }
/// <exception cref="Com.Google.Protobuf.ServiceException"/> public virtual YarnServiceProtos.StartContainersResponseProto StartContainers(RpcController arg0, YarnServiceProtos.StartContainersRequestProto proto) { StartContainersRequestPBImpl request = new StartContainersRequestPBImpl(proto); try { StartContainersResponse response = real.StartContainers(request); return(((StartContainersResponsePBImpl)response).GetProto()); } catch (YarnException e) { throw new ServiceException(e); } catch (IOException e) { throw new ServiceException(e); } }
public StartContainersRequestPBImpl(YarnServiceProtos.StartContainersRequestProto proto) { this.proto = proto; viaProto = true; }