/// <exception cref="Org.Apache.Hadoop.Yarn.Exceptions.YarnException"/> /// <exception cref="System.IO.IOException"/> public override IList <ApplicationReport> GetApplications() { GetApplicationsRequest request = GetApplicationsRequest.NewInstance(null, null); GetApplicationsResponse response = ahsClient.GetApplications(request); return(response.GetApplicationList()); }
/// <exception cref="Com.Google.Protobuf.ServiceException"/> public virtual YarnServiceProtos.GetApplicationsResponseProto GetApplications(RpcController controller, YarnServiceProtos.GetApplicationsRequestProto proto) { GetApplicationsRequestPBImpl request = new GetApplicationsRequestPBImpl(proto); try { GetApplicationsResponse response = real.GetApplications(request); return(((GetApplicationsResponsePBImpl)response).GetProto()); } catch (YarnException e) { throw new ServiceException(e); } catch (IOException e) { throw new ServiceException(e); } }