Ignore:
Timestamp:
03/26/12 12:03:27 (13 years ago)
Author:
wojtekp
Message:
 
File:
1 edited

Legend:

Unmodified
Added
Removed
  • xssim/trunk/src/example/localplugin/FCFSClusterLocalPlugin.java

    r169 r192  
    4949                case TIMER: 
    5050                        // our tasks are placed only in first queue (see 
    51                         // BaseLocalPlugin.placeTasksInQueues() method) 
     51                        // BaseLocalPlugin.placeJobsInQueues() method) 
    5252                        Queue q = queues.get(0); 
    5353                        // check all tasks in queue 
    54  
    5554 
    5655                        for (int i = 0; i < q.size(); i++) { 
     
    6463                                        /****************3 ways to schedule task****************/ 
    6564                                         
    66                                         //1. Choosing particular resources to perform execution 
     65                                        /****************1. Choosing particular resources to perform execution****************/ 
    6766                                        Map<ResourceParameterName, ResourceUnit> choosenResources = chooseResourcesForExecution(resourceManager, subTask); 
    6867                                        if (choosenResources != null) { 
     
    7069                                        } 
    7170                                         
    72                                         //2. Choosing resource scheduler/provider to submit task.  If the given resource doesn't contains/isn't  
    73                                         //a scheduler, random resources from the given resource will be chosen in order to perform execution 
     71                                        /****************2. Choosing resource scheduler/provider to submit task.  If the given resource doesn't contains/isn't  
     72                                        a scheduler, random resources from the given resource will be chosen in order to perform execution****************/ 
    7473                                        /*String provName = chooseProviderForExecution(resourceManager); 
    7574                                        if (provName != null) { 
     
    7776                                        }*/ 
    7877 
    79                                         //3. Scheduler will choose random resources to perform execution 
     78                                        /****************3. Scheduler will choose random resources to perform execution****************/ 
    8079                                        //addToSchedulingPlan(plan, task); 
    81  
    8280                                } 
    8381                        } 
     
    141139 
    142140                                if (node.getFreeMemory() >= memoryRequest) { 
    143                                         memory = new Memory(node.getMemory(), memoryRequest, memoryRequest); 
     141                                        memory = new Memory(node.getMemoryUnit(), memoryRequest, memoryRequest); 
    144142                                } else 
    145143                                        return null; 
     
    151149        } 
    152150 
     151        @SuppressWarnings("unchecked") 
    153152        private String chooseProviderForExecution(ResourceManagerInterface unitsManager) { 
    154153                List<ComputingResource> processingElements; 
Note: See TracChangeset for help on using the changeset viewer.