Ignore:
Timestamp:
04/23/14 14:35:44 (11 years ago)
Author:
wojtekp
Message:
 
Location:
DCWoRMS/branches/coolemall/src/schedframe/scheduling/policy
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • DCWoRMS/branches/coolemall/src/schedframe/scheduling/policy/global/GlobalManagementSystem.java

    r493 r1357  
    250250        } 
    251251 
    252         class GlobalWorkloadUnitHandler implements  WorkloadUnitHandler{ 
     252        class GlobalWorkloadUnitHandler implements WorkloadUnitHandler{ 
    253253 
    254254                public void handleJob(JobInterface<?> job){ 
  • DCWoRMS/branches/coolemall/src/schedframe/scheduling/policy/local/LocalManagementSystem.java

    r1332 r1357  
    256256                 
    257257                PEUnit peUnit = (PEUnit)choosenResources.get(StandardResourceUnitName.PE); 
    258                 notifyComputingResources(peUnit, EnergyEventType.TASK_STARTED, exec); 
     258                updateComputingResources(peUnit, EnergyEventType.TASK_STARTED, exec); 
    259259                 
    260260                updateTaskExecution(exec, SchedulingEventType.START_TASK_EXECUTION); 
     
    311311                 
    312312                PEUnit peUnit = (PEUnit)lastUsed.get(StandardResourceUnitName.PE); 
    313                 notifyComputingResources(peUnit, EnergyEventType.TASK_FINISHED, exec); 
     313                updateComputingResources(peUnit, EnergyEventType.TASK_FINISHED, exec); 
    314314        } 
    315315         
     
    342342        } 
    343343         
    344         private void notifyComputingResources(PEUnit peUnit, EnergyEventType eventType, Object obj){ 
     344        private void updateComputingResources(PEUnit peUnit, EnergyEventType eventType, Object obj){ 
    345345                if(peUnit instanceof ProcessingElements){ 
    346346                        ProcessingElements pes = (ProcessingElements) peUnit; 
     
    427427                                scheduler.sendInternal(phaseDuration, DCWormsTags.TASK_EXECUTION_FINISHED, execTask); 
    428428                                PEUnit peUnit = (PEUnit)exec.getUsedResources().getLast().getResourceUnits().get(StandardResourceUnitName.PE); 
    429                                 notifyComputingResources(peUnit, EnergyEventType.RESOURCE_UTILIZATION_CHANGED, exec); 
     429                                updateComputingResources(peUnit, EnergyEventType.RESOURCE_UTILIZATION_CHANGED, exec); 
    430430                        } else { 
    431431                                scheduler.sendInternal(phaseDuration, DCWormsTags.TASK_EXECUTION_CHANGED, execTask); 
    432432                                PEUnit peUnit = (PEUnit)exec.getUsedResources().getLast().getResourceUnits().get(StandardResourceUnitName.PE); 
    433                                 notifyComputingResources(peUnit, EnergyEventType.RESOURCE_UTILIZATION_CHANGED, exec); 
     433                                updateComputingResources(peUnit, EnergyEventType.RESOURCE_UTILIZATION_CHANGED, exec); 
    434434                        } 
    435435                } 
Note: See TracChangeset for help on using the changeset viewer.