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