eu.unicore.hila.grid.unicore6
Class TasksHelper

java.lang.Object
  extended by eu.unicore.hila.grid.unicore6.TasksHelper

public class TasksHelper
extends Object

Author:
bjoernh 28.03.2011 10:43:00

Constructor Summary
TasksHelper()
           
 
Method Summary
static boolean allTasksSuccessful(List<? extends eu.unicore.hila.grid.Task> tasks)
          Determine whether all Tasks in a given List of Tasks have TaskStatus.SUCCESSFUL
static boolean hasPendingTasks(List<? extends eu.unicore.hila.grid.Task> tasks)
          Determine whether any Task in a given List of Tasks have a non-final TaskStatus.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

TasksHelper

public TasksHelper()
Method Detail

allTasksSuccessful

public static boolean allTasksSuccessful(List<? extends eu.unicore.hila.grid.Task> tasks)
                                  throws eu.unicore.hila.exceptions.HiLAException
Determine whether all Tasks in a given List of Tasks have TaskStatus.SUCCESSFUL

Parameters:
tasks - A list of objects implementing the Task interface.
Returns:
true, if all Tasks 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 Tasks have a non-final TaskStatus.

Parameters:
tasks - A list of objects implementing the Task interface.
Returns:
true, if any of the Tasks has a non-final TaskStatus.
Throws:
eu.unicore.hila.exceptions.HiLAException


Copyright © 2010-2013 UNICORE. All Rights Reserved.