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;
}
Aggregations