public virtual YarnServiceProtos.GetNewApplicationRequestProto GetProto() { proto = viaProto ? proto : ((YarnServiceProtos.GetNewApplicationRequestProto)builder .Build()); viaProto = true; return(proto); }
/// <exception cref="Org.Apache.Hadoop.Yarn.Exceptions.YarnException"/> /// <exception cref="System.IO.IOException"/> public virtual GetNewApplicationResponse GetNewApplication(GetNewApplicationRequest request) { YarnServiceProtos.GetNewApplicationRequestProto requestProto = ((GetNewApplicationRequestPBImpl )request).GetProto(); try { return(new GetNewApplicationResponsePBImpl(proxy.GetNewApplication(null, requestProto ))); } catch (ServiceException e) { RPCUtil.UnwrapAndThrowException(e); return(null); } }
/// <exception cref="Com.Google.Protobuf.ServiceException"/> public virtual YarnServiceProtos.GetNewApplicationResponseProto GetNewApplication (RpcController arg0, YarnServiceProtos.GetNewApplicationRequestProto proto) { GetNewApplicationRequestPBImpl request = new GetNewApplicationRequestPBImpl(proto ); try { GetNewApplicationResponse response = real.GetNewApplication(request); return(((GetNewApplicationResponsePBImpl)response).GetProto()); } catch (YarnException e) { throw new ServiceException(e); } catch (IOException e) { throw new ServiceException(e); } }
public GetNewApplicationRequestPBImpl(YarnServiceProtos.GetNewApplicationRequestProto proto) { this.proto = proto; viaProto = true; }