Changeset 539 for DCWoRMS/trunk/build/classes/example/localplugin/FCFSConsolidationClusterLocalPlugin.java
- Timestamp:
- 10/31/12 13:52:06 (12 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
DCWoRMS/trunk/build/classes/example/localplugin/FCFSConsolidationClusterLocalPlugin.java
r477 r539 1 1 package example.localplugin; 2 2 3 import gridsim. Gridlet;3 import gridsim.dcworms.DCWormsTags; 4 4 5 5 import java.util.ArrayList; … … 30 30 import schedframe.scheduling.tasks.WorkloadUnit; 31 31 32 public class FCFSConsolidationClusterLocalPlugin extends BaseLocal Plugin {32 public class FCFSConsolidationClusterLocalPlugin extends BaseLocalSchedulingPlugin { 33 33 34 34 public FCFSConsolidationClusterLocalPlugin () { 35 35 } 36 36 37 public SchedulingPlanInterface schedule(SchedulingEvent event, TaskQueueList queues, JobRegistry jobRegistry,37 public SchedulingPlanInterface<?> schedule(SchedulingEvent event, TaskQueueList queues, JobRegistry jobRegistry, 38 38 ResourceManager resManager, ModuleList modules) { 39 39 … … 51 51 52 52 for (int i = 0; i < q.size(); i++) { 53 WorkloadUnit <?>job = q.get(i);53 WorkloadUnit job = q.get(i); 54 54 TaskInterface<?> task = (TaskInterface<?>) job; 55 55 // if status of the tasks in READY 56 if (task.getStatus() == Gridlet.READY) {56 if (task.getStatus() == DCWormsTags.READY) { 57 57 58 58 Map<ResourceUnitName, ResourceUnit> choosenResources = null; … … 140 140 return suitableNodes; 141 141 } 142 143 public String getName() {144 return getClass().getName();145 }146 142 147 143 }
Note: See TracChangeset
for help on using the changeset viewer.