Revision 104,
1.1 KB
checked in by wojtekp, 13 years ago
(diff) |
|
-
Property svn:mime-type set to
text/plain
|
Rev | Line | |
---|
[104] | 1 | package test.rewolucja; |
---|
| 2 | |
---|
| 3 | import java.util.List; |
---|
| 4 | |
---|
| 5 | import schedframe.scheduling.TaskInterface; |
---|
| 6 | import schedframe.scheduling.utils.DescriptionContainer; |
---|
| 7 | |
---|
| 8 | public interface GSSIMJobInterface<T> extends DescriptionContainer<T> { |
---|
| 9 | |
---|
| 10 | /** |
---|
| 11 | * |
---|
| 12 | * @return job identifier |
---|
| 13 | * @throws NoSuchFieldException if there is no tasks for this job, and job id can not be obtained |
---|
| 14 | */ |
---|
| 15 | public abstract String getId() throws NoSuchFieldException; |
---|
| 16 | |
---|
| 17 | /** |
---|
| 18 | * |
---|
| 19 | * @return list of tasks which belongs to this job |
---|
| 20 | */ |
---|
| 21 | public abstract List<? extends TaskInterface<?>> getTask(); |
---|
| 22 | |
---|
| 23 | /** |
---|
| 24 | * |
---|
| 25 | * @param taskId |
---|
| 26 | * @return task with specified taskId |
---|
| 27 | * @throws NoSuchFieldException if task with taskId does not exist in this job |
---|
| 28 | */ |
---|
| 29 | public abstract TaskInterface<?> getTask(String taskId) throws NoSuchFieldException; |
---|
| 30 | |
---|
| 31 | /** |
---|
| 32 | * |
---|
| 33 | * @return number of tasks in this job |
---|
| 34 | */ |
---|
| 35 | public abstract int getTaskCount(); |
---|
| 36 | |
---|
| 37 | /** |
---|
| 38 | * |
---|
| 39 | * @return constant which represents current status of this job |
---|
| 40 | */ |
---|
| 41 | public int getStatus(); |
---|
| 42 | |
---|
| 43 | public void setStatus(int status) throws Exception; |
---|
| 44 | |
---|
| 45 | public boolean isFinished(); |
---|
| 46 | |
---|
| 47 | public int getUserID(); |
---|
| 48 | |
---|
| 49 | } |
---|
Note: See
TracBrowser
for help on using the repository browser.