/// <exception cref="Com.Google.Protobuf.ServiceException"/> public virtual YarnServiceProtos.GetLabelsToNodesResponseProto GetLabelsToNodes(RpcController controller, YarnServiceProtos.GetLabelsToNodesRequestProto proto) { GetLabelsToNodesRequestPBImpl request = new GetLabelsToNodesRequestPBImpl(proto); try { GetLabelsToNodesResponse response = real.GetLabelsToNodes(request); return(((GetLabelsToNodesResponsePBImpl)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 <string, ICollection <NodeId> > GetLabelsToNodes() { return(rmClient.GetLabelsToNodes(GetLabelsToNodesRequest.NewInstance()).GetLabelsToNodes ()); }