/// <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);
     }
 }
示例#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
                ());
 }
示例#3
0
 /// <exception cref="Org.Apache.Hadoop.Yarn.Exceptions.YarnException"/>
 /// <exception cref="System.IO.IOException"/>
 public virtual GetNodesToLabelsResponse GetNodeToLabels(GetNodesToLabelsRequest request
                                                         )
 {
     return(null);
 }