Revision 195,
828 bytes
checked in by wojtekp, 13 years ago
(diff) |
|
-
Property svn:mime-type set to
text/plain
|
Rev | Line | |
---|
[104] | 1 | package example.gridplugin; |
---|
| 2 | |
---|
| 3 | import schedframe.scheduling.plugin.grid.GlobalSchedulingPlugin; |
---|
| 4 | import schedframe.scheduling.plugin.grid.ModuleList; |
---|
| 5 | import test.rewolucja.GSSIMJobInterface; |
---|
| 6 | import test.rewolucja.resources.manager.interfaces.ResourceManagerInterface; |
---|
[164] | 7 | import test.rewolucja.scheduling.queue.Queue; |
---|
[104] | 8 | import test.rewolucja.scheduling.queue.QueueList; |
---|
| 9 | import test.rewolucja.task.JobList; |
---|
| 10 | |
---|
[195] | 11 | public abstract class BaseGlobalPlugin implements GlobalSchedulingPlugin { |
---|
[104] | 12 | |
---|
[195] | 13 | public int placeJobsInQueues(JobList newJobs, QueueList queues, ResourceManagerInterface resourceManager, |
---|
| 14 | ModuleList moduleList) { |
---|
| 15 | |
---|
[104] | 16 | // get the first queue from all available queues. |
---|
[164] | 17 | Queue queue = queues.get(0); |
---|
[104] | 18 | |
---|
[195] | 19 | for (int i = 0; i < newJobs.size(); i++) { |
---|
[104] | 20 | GSSIMJobInterface<?> task = newJobs.get(i); |
---|
| 21 | queue.add(task); |
---|
| 22 | } |
---|
| 23 | |
---|
| 24 | return 0; |
---|
| 25 | } |
---|
| 26 | } |
---|
Note: See
TracBrowser
for help on using the repository browser.