/// <exception cref="Com.Google.Protobuf.ServiceException"/>
        public virtual YarnServiceProtos.GetClusterNodeLabelsResponseProto GetClusterNodeLabels
            (RpcController controller, YarnServiceProtos.GetClusterNodeLabelsRequestProto proto
            )
        {
            GetClusterNodeLabelsRequestPBImpl request = new GetClusterNodeLabelsRequestPBImpl
                                                            (proto);

            try
            {
                GetClusterNodeLabelsResponse response = real.GetClusterNodeLabels(request);
                return(((GetClusterNodeLabelsResponsePBImpl)response).GetProto());
            }
            catch (YarnException e)
            {
                throw new ServiceException(e);
            }
            catch (IOException e)
            {
                throw new ServiceException(e);
            }
        }
Beispiel #2
0
 /// <exception cref="Org.Apache.Hadoop.Yarn.Exceptions.YarnException"/>
 /// <exception cref="System.IO.IOException"/>
 public override ICollection <string> GetClusterNodeLabels()
 {
     return(rmClient.GetClusterNodeLabels(GetClusterNodeLabelsRequest.NewInstance()).GetNodeLabels
                ());
 }