public virtual YarnServiceProtos.GetNodesToLabelsRequestProto GetProto() { proto = viaProto ? proto : ((YarnServiceProtos.GetNodesToLabelsRequestProto)builder .Build()); viaProto = true; return(proto); }
/// <exception cref="Org.Apache.Hadoop.Yarn.Exceptions.YarnException"/> /// <exception cref="System.IO.IOException"/> public virtual GetNodesToLabelsResponse GetNodeToLabels(GetNodesToLabelsRequest request ) { YarnServiceProtos.GetNodesToLabelsRequestProto requestProto = ((GetNodesToLabelsRequestPBImpl )request).GetProto(); try { return(new GetNodesToLabelsResponsePBImpl(proxy.GetNodeToLabels(null, requestProto ))); } catch (ServiceException e) { RPCUtil.UnwrapAndThrowException(e); return(null); } }
/// <exception cref="Com.Google.Protobuf.ServiceException"/> public virtual YarnServiceProtos.GetNodesToLabelsResponseProto GetNodeToLabels(RpcController controller, YarnServiceProtos.GetNodesToLabelsRequestProto proto) { GetNodesToLabelsRequestPBImpl request = new GetNodesToLabelsRequestPBImpl(proto); try { GetNodesToLabelsResponse response = real.GetNodeToLabels(request); return(((GetNodesToLabelsResponsePBImpl)response).GetProto()); } catch (YarnException e) { throw new ServiceException(e); } catch (IOException e) { throw new ServiceException(e); } }
public GetNodesToLabelsRequestPBImpl(YarnServiceProtos.GetNodesToLabelsRequestProto proto) { this.proto = proto; viaProto = true; }