/// <exception cref="Com.Google.Protobuf.ServiceException"/>
        public virtual YarnServiceProtos.ReservationDeleteResponseProto DeleteReservation
            (RpcController controller, YarnServiceProtos.ReservationDeleteRequestProto requestProto
            )
        {
            ReservationDeleteRequestPBImpl request = new ReservationDeleteRequestPBImpl(requestProto
                                                                                        );

            try
            {
                ReservationDeleteResponse response = real.DeleteReservation(request);
                return(((ReservationDeleteResponsePBImpl)response).GetProto());
            }
            catch (YarnException e)
            {
                throw new ServiceException(e);
            }
            catch (IOException e)
            {
                throw new ServiceException(e);
            }
        }
Beispiel #2
0
 /// <exception cref="Org.Apache.Hadoop.Yarn.Exceptions.YarnException"/>
 /// <exception cref="System.IO.IOException"/>
 public override ReservationDeleteResponse DeleteReservation(ReservationDeleteRequest
                                                             request)
 {
     return(rmClient.DeleteReservation(request));
 }