Ignore:
Timestamp:
10/09/12 13:58:06 (13 years ago)
Author:
wojtekp
Message:
 
File:
1 edited

Legend:

Unmodified
Added
Removed
  • DCWoRMS/trunk/src/schedframe/scheduling/policy/AbstractManagementSystem.java

    r481 r490  
    77import org.apache.commons.logging.LogFactory; 
    88import org.joda.time.DateTimeUtilsExt; 
     9 
     10import dcworms.schedframe.scheduling.ExecTask; 
     11import dcworms.schedframe.scheduling.Executable; 
     12import dcworms.schedframe.scheduling.queues.AbstractStatsSupportingQueue; 
    913 
    1014import schedframe.PluginConfiguration; 
     
    3438import gridsim.IO_data; 
    3539import gridsim.gssim.DCWormsTags; 
    36 import gssim.schedframe.scheduling.ExecTask; 
    37 import gssim.schedframe.scheduling.Executable; 
    38 import gssim.schedframe.scheduling.queues.AbstractStatsSupportingQueue; 
    3940 
    4041public abstract class AbstractManagementSystem { 
     
    144145                        return; 
    145146                } 
    146                 //Executable exec = (Executable) wu; 
    147147                removeFromQueue(task); 
    148148                scheduler.send(providerName, GridSimTags.SCHEDULE_NOW, GridSimTags.GRIDLET_SUBMIT, task);        
     
    199199        } 
    200200         
    201         protected boolean removeFromQueue(WorkloadUnit wu) { 
     201        protected boolean removeFromQueue(TaskInterface<?> task) { 
    202202                for(TaskQueue queue : queues){ 
    203                         if(queue.contains(wu)){ 
    204                                 queue.remove(wu); 
     203                        if(queue.contains(task)){ 
     204                                queue.remove(task); 
    205205                                return true; 
    206206                        } 
Note: See TracChangeset for help on using the changeset viewer.