/// <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);
            }
        }
Exemplo n.º 2
0
 /// <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
                ());
 }