GetProto()
 {
     MergeLocalToProto();
     proto = viaProto ? proto : ((YarnServerResourceManagerServiceProtos.RemoveFromClusterNodeLabelsRequestProto
                                  )builder.Build());
     viaProto = true;
     return(proto);
 }
 private void MergeLocalToProto()
 {
     if (viaProto)
     {
         MaybeInitBuilder();
     }
     MergeLocalToBuilder();
     proto = ((YarnServerResourceManagerServiceProtos.RemoveFromClusterNodeLabelsRequestProto
               )builder.Build());
     viaProto = true;
 }
        RemoveFromClusterNodeLabels(RpcController controller, YarnServerResourceManagerServiceProtos.RemoveFromClusterNodeLabelsRequestProto
                                    proto)
        {
            RemoveFromClusterNodeLabelsRequestPBImpl request = new RemoveFromClusterNodeLabelsRequestPBImpl
                                                                   (proto);

            try
            {
                RemoveFromClusterNodeLabelsResponse response = real.RemoveFromClusterNodeLabels(request
                                                                                                );
                return(((RemoveFromClusterNodeLabelsResponsePBImpl)response).GetProto());
            }
            catch (YarnException e)
            {
                throw new ServiceException(e);
            }
            catch (IOException e)
            {
                throw new ServiceException(e);
            }
        }
Пример #4
0
 /// <exception cref="Org.Apache.Hadoop.Yarn.Exceptions.YarnException"/>
 /// <exception cref="System.IO.IOException"/>
 public virtual RemoveFromClusterNodeLabelsResponse RemoveFromClusterNodeLabels(RemoveFromClusterNodeLabelsRequest
                                                                                request)
 {
     YarnServerResourceManagerServiceProtos.RemoveFromClusterNodeLabelsRequestProto requestProto
         = ((RemoveFromClusterNodeLabelsRequestPBImpl)request).GetProto();
     try
     {
         return(new RemoveFromClusterNodeLabelsResponsePBImpl(proxy.RemoveFromClusterNodeLabels
                                                                  (null, requestProto)));
     }
     catch (ServiceException e)
     {
         RPCUtil.UnwrapAndThrowException(e);
         return(null);
     }
 }
 public RemoveFromClusterNodeLabelsRequestPBImpl(YarnServerResourceManagerServiceProtos.RemoveFromClusterNodeLabelsRequestProto
                                                 proto)
 {
     this.proto = proto;
     viaProto   = true;
 }