/// <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); } }
/// <exception cref="Org.Apache.Hadoop.Yarn.Exceptions.YarnException"/> /// <exception cref="System.IO.IOException"/> public override IDictionary <NodeId, ICollection <string> > GetNodeToLabels() { return(rmClient.GetNodeToLabels(GetNodesToLabelsRequest.NewInstance()).GetNodeToLabels ()); }