Example #1
0
 GetProto()
 {
     MergeLocalToProto();
     proto = viaProto ? proto : ((YarnServerResourceManagerServiceProtos.AddToClusterNodeLabelsRequestProto
                                  )builder.Build());
     viaProto = true;
     return(proto);
 }
Example #2
0
 private void MergeLocalToProto()
 {
     if (viaProto)
     {
         MaybeInitBuilder();
     }
     MergeLocalToBuilder();
     proto = ((YarnServerResourceManagerServiceProtos.AddToClusterNodeLabelsRequestProto
               )builder.Build());
     viaProto = true;
 }
        AddToClusterNodeLabels(RpcController controller, YarnServerResourceManagerServiceProtos.AddToClusterNodeLabelsRequestProto
                               proto)
        {
            AddToClusterNodeLabelsRequestPBImpl request = new AddToClusterNodeLabelsRequestPBImpl
                                                              (proto);

            try
            {
                AddToClusterNodeLabelsResponse response = real.AddToClusterNodeLabels(request);
                return(((AddToClusterNodeLabelsResponsePBImpl)response).GetProto());
            }
            catch (YarnException e)
            {
                throw new ServiceException(e);
            }
            catch (IOException e)
            {
                throw new ServiceException(e);
            }
        }
Example #4
0
 public AddToClusterNodeLabelsRequestPBImpl(YarnServerResourceManagerServiceProtos.AddToClusterNodeLabelsRequestProto
                                            proto)
 {
     this.proto = proto;
     viaProto   = true;
 }
Example #5
0
 /// <exception cref="Org.Apache.Hadoop.Yarn.Exceptions.YarnException"/>
 /// <exception cref="System.IO.IOException"/>
 public virtual AddToClusterNodeLabelsResponse AddToClusterNodeLabels(AddToClusterNodeLabelsRequest
                                                                      request)
 {
     YarnServerResourceManagerServiceProtos.AddToClusterNodeLabelsRequestProto requestProto
         = ((AddToClusterNodeLabelsRequestPBImpl)request).GetProto();
     try
     {
         return(new AddToClusterNodeLabelsResponsePBImpl(proxy.AddToClusterNodeLabels(null
                                                                                      , requestProto)));
     }
     catch (ServiceException e)
     {
         RPCUtil.UnwrapAndThrowException(e);
         return(null);
     }
 }