Search in sources :

Example 1 with ServerInfoBean

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;
}
Also used : ServerInfoBean(org.apache.airavata.cloud.aurora.client.bean.ServerInfoBean) JobDetailsResponseBean(org.apache.airavata.cloud.aurora.client.bean.JobDetailsResponseBean) GetJobsResponseBean(org.apache.airavata.cloud.aurora.client.bean.GetJobsResponseBean) ResponseBean(org.apache.airavata.cloud.aurora.client.bean.ResponseBean)

Aggregations

GetJobsResponseBean (org.apache.airavata.cloud.aurora.client.bean.GetJobsResponseBean)1 JobDetailsResponseBean (org.apache.airavata.cloud.aurora.client.bean.JobDetailsResponseBean)1 ResponseBean (org.apache.airavata.cloud.aurora.client.bean.ResponseBean)1 ServerInfoBean (org.apache.airavata.cloud.aurora.client.bean.ServerInfoBean)1