- Timestamp:
- 10/31/12 13:52:06 (12 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
DCWoRMS/trunk/build/classes/schedframe/scheduling/tasks/WorkloadUnit.java
r477 r539 1 1 package schedframe.scheduling.tasks; 2 2 3 import java.util.List;4 5 import schedframe.DescriptionContainer;6 3 import schedframe.scheduling.WorkloadUnitHandler; 7 4 import schedframe.scheduling.manager.tasks.JobRegistryImpl; 8 import schedframe.scheduling.policy.AbstractManagementSystem;9 5 10 public interface WorkloadUnit <T> extends DescriptionContainer<T>{6 public interface WorkloadUnit { 11 7 12 /** 13 * 14 * @return job identifier 15 * @throws NoSuchFieldException if there is no tasks for this job, and job id can not be obtained 16 */ 17 public abstract String getId() throws NoSuchFieldException; 8 public String getId(); 18 9 19 /** 20 * 21 * @return list of tasks which belongs to this job 22 */ 23 public abstract List<? extends TaskInterface<?>> getTask(); 10 public int getUserId(); 24 11 25 /**26 *27 * @param taskId28 * @return task with specified taskId29 * @throws NoSuchFieldException if task with taskId does not exist in this job30 */31 public abstract TaskInterface<?> getTask(String taskId) throws NoSuchFieldException;32 33 /**34 *35 * @return number of tasks in this job36 */37 public abstract int getTaskCount();38 39 /**40 *41 * @return constant which represents current status of this job42 */43 12 public int getStatus(); 44 13 45 14 public void setStatus(int status) throws Exception; 46 15 47 16 public boolean isFinished(); 48 49 public int getUserID(); 50 17 51 18 public boolean isRegistered(); 52 19
Note: See TracChangeset
for help on using the changeset viewer.