use of org.ovirt.engine.core.common.queries.GetTasksStatusesByTasksIDsParameters in project ovirt-engine by oVirt.
the class AbstractBackendResource method getVdsmTasksStatus.
private CreationStatus getVdsmTasksStatus(ActionReturnValue result) {
CreationStatus asyncStatus = null;
QueryReturnValue monitorResult = runQuery(QueryType.GetTasksStatusesByTasksIDs, new GetTasksStatusesByTasksIDsParameters(result.getVdsmTaskIdList()));
if (monitorResult != null && monitorResult.getSucceeded() && monitorResult.getReturnValue() != null) {
Mapper<AsyncTaskStatus, CreationStatus> mapper = getMapper(AsyncTaskStatus.class, CreationStatus.class);
for (AsyncTaskStatus task : asCollection(AsyncTaskStatus.class, monitorResult.getReturnValue())) {
asyncStatus = mapper.map(task, asyncStatus);
}
}
return asyncStatus;
}
Aggregations