Exemple #1
0
 public virtual YarnServerResourceManagerServiceProtos.RefreshQueuesRequestProto GetProto
     ()
 {
     proto = viaProto ? proto : ((YarnServerResourceManagerServiceProtos.RefreshQueuesRequestProto
                                  )builder.Build());
     viaProto = true;
     return(proto);
 }
Exemple #2
0
 /// <exception cref="Org.Apache.Hadoop.Yarn.Exceptions.YarnException"/>
 /// <exception cref="System.IO.IOException"/>
 public virtual RefreshQueuesResponse RefreshQueues(RefreshQueuesRequest request)
 {
     YarnServerResourceManagerServiceProtos.RefreshQueuesRequestProto requestProto = (
         (RefreshQueuesRequestPBImpl)request).GetProto();
     try
     {
         return(new RefreshQueuesResponsePBImpl(proxy.RefreshQueues(null, requestProto)));
     }
     catch (ServiceException e)
     {
         RPCUtil.UnwrapAndThrowException(e);
         return(null);
     }
 }
        RefreshQueues(RpcController controller, YarnServerResourceManagerServiceProtos.RefreshQueuesRequestProto
                      proto)
        {
            RefreshQueuesRequestPBImpl request = new RefreshQueuesRequestPBImpl(proto);

            try
            {
                RefreshQueuesResponse response = real.RefreshQueues(request);
                return(((RefreshQueuesResponsePBImpl)response).GetProto());
            }
            catch (YarnException e)
            {
                throw new ServiceException(e);
            }
            catch (IOException e)
            {
                throw new ServiceException(e);
            }
        }
Exemple #4
0
 public RefreshQueuesRequestPBImpl(YarnServerResourceManagerServiceProtos.RefreshQueuesRequestProto
                                   proto)
 {
     this.proto = proto;
     viaProto   = true;
 }