Search in sources :

Example 1 with SdxProgressListResponse

use of com.sequenceiq.sdx.api.model.SdxProgressListResponse in project cloudbreak by hortonworks.

the class ProgressService method getFlowProgressListByResourceCrn.

public SdxProgressListResponse getFlowProgressListByResourceCrn(String resourceCrn) {
    SdxProgressListResponse response = new SdxProgressListResponse();
    response.setRecentFlowOperations(flowService.getFlowProgressListByResourceCrn(resourceCrn));
    try {
        response.setRecentInternalFlowOperations(progressV4Endpoint.getFlowLogsProgressByResourceCrn(resourceCrn));
    } catch (NotFoundException notFoundException) {
        LOGGER.debug("Stack for datalake '{}' has not found yet. It is acceptable for progress response.", resourceCrn);
    }
    return response;
}
Also used : NotFoundException(com.sequenceiq.cloudbreak.common.exception.NotFoundException) SdxProgressListResponse(com.sequenceiq.sdx.api.model.SdxProgressListResponse)

Aggregations

NotFoundException (com.sequenceiq.cloudbreak.common.exception.NotFoundException)1 SdxProgressListResponse (com.sequenceiq.sdx.api.model.SdxProgressListResponse)1