use of org.ovirt.engine.core.common.asynctasks.EndedTasksInfo in project ovirt-engine by oVirt.
the class CommandMultiAsyncTasks method getEndedTasksInfo.
public EndedTasksInfo getEndedTasksInfo() {
EndedTasksInfo endedTasksInfo = new EndedTasksInfo();
ArrayList<EndedTaskInfo> endedTaskInfoList = new ArrayList<>();
synchronized (_listTasks) {
ArrayList<CommandAsyncTask> CurrentActionTypeTasks = getCurrentTasks();
for (CommandAsyncTask task : CurrentActionTypeTasks) {
task.setLastStatusAccessTime();
EndedTaskInfo tempVar = new EndedTaskInfo();
tempVar.setTaskStatus(task.getLastTaskStatus());
tempVar.setTaskParameters(task.getParameters());
endedTaskInfoList.add(tempVar);
}
endedTasksInfo.setTasksInfo(endedTaskInfoList);
}
return endedTasksInfo;
}
Aggregations