Search in sources :

Example 1 with SdxProgressResponse

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

the class ProgressService method getLastFlowProgressByResourceCrn.

public SdxProgressResponse getLastFlowProgressByResourceCrn(String resourceCrn) {
    SdxProgressResponse response = new SdxProgressResponse();
    response.setLastFlowOperation(flowService.getLastFlowProgressByResourceCrn(resourceCrn));
    try {
        response.setLastInternalFlowOperation(progressV4Endpoint.getLastFlowLogProgressByResourceCrn(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) SdxProgressResponse(com.sequenceiq.sdx.api.model.SdxProgressResponse)

Aggregations

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