Search in sources :

Example 1 with FlowStatus

use of org.openkilda.integration.model.FlowStatus in project open-kilda by telstra.

the class FlowsIntegrationService method getFlowStatus.

/**
 * Gets the flow status.
 *
 * @param flowId the flow id
 * @return the flow status
 * @throws IntegrationException
 */
public String getFlowStatus(final String flowId) throws IntegrationException {
    FlowStatus flowStatus = null;
    HttpResponse response = restClientManager.invoke(applicationProperties.getFlowStatus() + flowId, HttpMethod.GET, "", "", applicationService.getAuthHeader());
    if (RestClientManager.isValidResponse(response)) {
        flowStatus = restClientManager.getResponse(response, FlowStatus.class);
        return flowStatus.getStatus();
    }
    return null;
}
Also used : HttpResponse(org.apache.http.HttpResponse) FlowStatus(org.openkilda.integration.model.FlowStatus)

Aggregations

HttpResponse (org.apache.http.HttpResponse)1 FlowStatus (org.openkilda.integration.model.FlowStatus)1