Beispiel #1
0
        /// <exception cref="Org.Apache.Hadoop.Yarn.Exceptions.YarnException"/>
        /// <exception cref="System.IO.IOException"/>
        public override void MoveApplicationAcrossQueues(ApplicationId appId, string queue
                                                         )
        {
            MoveApplicationAcrossQueuesRequest request = MoveApplicationAcrossQueuesRequest.NewInstance
                                                             (appId, queue);

            rmClient.MoveApplicationAcrossQueues(request);
        }
        /// <exception cref="Com.Google.Protobuf.ServiceException"/>
        public virtual YarnServiceProtos.MoveApplicationAcrossQueuesResponseProto MoveApplicationAcrossQueues
            (RpcController controller, YarnServiceProtos.MoveApplicationAcrossQueuesRequestProto
            proto)
        {
            MoveApplicationAcrossQueuesRequestPBImpl request = new MoveApplicationAcrossQueuesRequestPBImpl
                                                                   (proto);

            try
            {
                MoveApplicationAcrossQueuesResponse response = real.MoveApplicationAcrossQueues(request
                                                                                                );
                return(((MoveApplicationAcrossQueuesResponsePBImpl)response).GetProto());
            }
            catch (YarnException e)
            {
                throw new ServiceException(e);
            }
            catch (IOException e)
            {
                throw new ServiceException(e);
            }
        }