source: xssim/src/schedframe/scheduling/plugin/grid/JobRegistry.java @ 104

Revision 104, 1.3 KB checked in by wojtekp, 13 years ago (diff)
  • Property svn:mime-type set to text/plain
Line 
1package schedframe.scheduling.plugin.grid;
2
3import java.util.List;
4
5import schedframe.scheduling.JobInterface;
6import schedframe.scheduling.TaskInterface;
7
8
9/**
10 * The JobRegistry interface provides information about jobs and tasks
11 * @author Ariel
12 *
13 */
14public interface JobRegistry extends Module{
15
16        /**
17         * Provide information about submitted jobs which are active (not finished)
18         * @return array of Job objects
19         */
20        public List<JobInterface<?>> getActiveJobs();
21
22        /**
23         * Provide information about submitted tasks which are active (not finished)
24         * @return array of Task objects
25         */
26        public List<TaskInterface<?>> getActiveTasks();
27       
28        /**
29         * Gets information about a given job
30         * @param jobID the identifier of the job
31         * @return object implementing Job interface
32         */
33        public JobInterface<?> getJobInfo(String jobID);
34
35        /**
36         * Gets information about a given task
37         * @param jobID the identifier of the job the task belongs to
38         * @param taskId the identifier of the task
39         * @return object implementing {@link TaskInterface} interface
40         */
41        public TaskInterface<?> getTaskInfo(String jobID, String taskId);
42
43        /**
44         * @param jobID the identifier of the job
45         * @param job
46         * @return
47         */
48        public boolean addJob(JobInterface<?> job);
49       
50       
51        public boolean addTask(TaskInterface<?> task);
52       
53}
Note: See TracBrowser for help on using the repository browser.