use of org.apache.airavata.cloud.aurora.client.bean.ServerInfoBean in project airavata by apache.
the class AuroraThriftClientUtil method getJobResponse.
/**
* Gets the job response.
*
* @param response the response
* @return the job response
*/
private static ResponseBean getJobResponse(Response response) {
ResponseBean responseBean = null;
if (response != null) {
responseBean = new ResponseBean();
responseBean.setResponseCode(ResponseCodeEnum.findByValue(response.getResponseCode().getValue()));
ServerInfoBean serverInfo = new ServerInfoBean(response.getServerInfo().getClusterName(), response.getServerInfo().getStatsUrlPrefix());
responseBean.setServerInfo(serverInfo);
}
return responseBean;
}
Aggregations