- Timestamp:
- 10/08/12 10:23:45 (13 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
DCWoRMS/trunk/src/example/globalplugin/GridFCFSLoadBalancingPlugin.java
r478 r481 19 19 import schedframe.scheduling.plugin.grid.ModuleList; 20 20 import schedframe.scheduling.plugin.grid.ResourceDiscovery; 21 import schedframe.scheduling.queue.QueueDescription; 21 22 import schedframe.scheduling.queue.TaskQueue; 22 import schedframe.scheduling.queue.QueueDescription;23 23 import schedframe.scheduling.queue.TaskQueueList; 24 24 import schedframe.scheduling.tasks.TaskInterface; … … 29 29 private Log log = LogFactory.getLog(GridFCFSLoadBalancingPlugin.class); 30 30 31 public SchedulingPlanInterface schedule(SchedulingEvent event,31 public SchedulingPlanInterface<?> schedule(SchedulingEvent event, 32 32 TaskQueueList queues, 33 33 JobRegistry jobRegistry, … … 83 83 84 84 private int findLeastLoadedResourceIdx(List<SchedulerDescription> availableResources){ 85 86 85 int resourceIdx = -1; 87 86 long minLoad = Long.MAX_VALUE; 87 88 88 for(int i = 0; i < availableResources.size(); i++){ 89 89 SchedulerDescription sd = availableResources.get(i);
Note: See TracChangeset
for help on using the changeset viewer.