Beispiel #1
0
 public virtual YarnServerResourceManagerServiceProtos.RefreshNodesRequestProto GetProto
     ()
 {
     proto = viaProto ? proto : ((YarnServerResourceManagerServiceProtos.RefreshNodesRequestProto
                                  )builder.Build());
     viaProto = true;
     return(proto);
 }
Beispiel #2
0
 /// <exception cref="Org.Apache.Hadoop.Yarn.Exceptions.YarnException"/>
 /// <exception cref="System.IO.IOException"/>
 public virtual RefreshNodesResponse RefreshNodes(RefreshNodesRequest request)
 {
     YarnServerResourceManagerServiceProtos.RefreshNodesRequestProto requestProto = ((
                                                                                         RefreshNodesRequestPBImpl)request).GetProto();
     try
     {
         return(new RefreshNodesResponsePBImpl(proxy.RefreshNodes(null, requestProto)));
     }
     catch (ServiceException e)
     {
         RPCUtil.UnwrapAndThrowException(e);
         return(null);
     }
 }
        /// <exception cref="Com.Google.Protobuf.ServiceException"/>
        public virtual YarnServerResourceManagerServiceProtos.RefreshNodesResponseProto RefreshNodes
            (RpcController controller, YarnServerResourceManagerServiceProtos.RefreshNodesRequestProto
            proto)
        {
            RefreshNodesRequestPBImpl request = new RefreshNodesRequestPBImpl(proto);

            try
            {
                RefreshNodesResponse response = real.RefreshNodes(request);
                return(((RefreshNodesResponsePBImpl)response).GetProto());
            }
            catch (YarnException e)
            {
                throw new ServiceException(e);
            }
            catch (IOException e)
            {
                throw new ServiceException(e);
            }
        }
Beispiel #4
0
 public RefreshNodesRequestPBImpl(YarnServerResourceManagerServiceProtos.RefreshNodesRequestProto
                                  proto)
 {
     this.proto = proto;
     viaProto   = true;
 }