eu.unicore.hila.grid.unicore6
Class TasksHelper
java.lang.Object
eu.unicore.hila.grid.unicore6.TasksHelper
public class TasksHelper
- extends Object
- Author:
- bjoernh
28.03.2011 10:43:00
Method Summary |
static boolean |
allTasksSuccessful(List<? extends eu.unicore.hila.grid.Task> tasks)
Determine whether all Task s in a given List of
Task s have TaskStatus.SUCCESSFUL |
static boolean |
hasPendingTasks(List<? extends eu.unicore.hila.grid.Task> tasks)
Determine whether any Task in a given List of
Task s have a non-final TaskStatus . |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
TasksHelper
public TasksHelper()
allTasksSuccessful
public static boolean allTasksSuccessful(List<? extends eu.unicore.hila.grid.Task> tasks)
throws eu.unicore.hila.exceptions.HiLAException
- Determine whether all
Task
s in a given List
of
Task
s have TaskStatus.SUCCESSFUL
- Parameters:
tasks
- A list of objects implementing the Task
interface.
- Returns:
- true, if all
Task
s were TaskStatus.SUCCESSFUL
- Throws:
eu.unicore.hila.exceptions.HiLAException
hasPendingTasks
public static boolean hasPendingTasks(List<? extends eu.unicore.hila.grid.Task> tasks)
throws eu.unicore.hila.exceptions.HiLAException
- Determine whether any
Task
in a given List
of
Task
s have a non-final TaskStatus
.
- Parameters:
tasks
- A list of objects implementing the Task
interface.
- Returns:
- true, if any of the
Task
s has a non-final
TaskStatus
.
- Throws:
eu.unicore.hila.exceptions.HiLAException
Copyright © 2010-2013 UNICORE. All Rights Reserved.