/// <exception cref="Org.Apache.Hadoop.Yarn.Exceptions.YarnException"/> /// <exception cref="System.IO.IOException"/> public override IList <ApplicationAttemptReport> GetApplicationAttempts(ApplicationId appId) { GetApplicationAttemptsRequest request = GetApplicationAttemptsRequest.NewInstance (appId); GetApplicationAttemptsResponse response = ahsClient.GetApplicationAttempts(request ); return(response.GetApplicationAttemptList()); }
/// <exception cref="Com.Google.Protobuf.ServiceException"/> public virtual YarnServiceProtos.GetApplicationAttemptsResponseProto GetApplicationAttempts (RpcController controller, YarnServiceProtos.GetApplicationAttemptsRequestProto proto) { GetApplicationAttemptsRequestPBImpl request = new GetApplicationAttemptsRequestPBImpl (proto); try { GetApplicationAttemptsResponse response = real.GetApplicationAttempts(request); return(((GetApplicationAttemptsResponsePBImpl)response).GetProto()); } catch (YarnException e) { throw new ServiceException(e); } catch (IOException e) { throw new ServiceException(e); } }