- Timestamp:
- 04/23/14 14:35:44 (11 years ago)
- 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 250 250 } 251 251 252 class GlobalWorkloadUnitHandler implements 252 class GlobalWorkloadUnitHandler implements WorkloadUnitHandler{ 253 253 254 254 public void handleJob(JobInterface<?> job){ -
DCWoRMS/branches/coolemall/src/schedframe/scheduling/policy/local/LocalManagementSystem.java
r1332 r1357 256 256 257 257 PEUnit peUnit = (PEUnit)choosenResources.get(StandardResourceUnitName.PE); 258 notifyComputingResources(peUnit, EnergyEventType.TASK_STARTED, exec);258 updateComputingResources(peUnit, EnergyEventType.TASK_STARTED, exec); 259 259 260 260 updateTaskExecution(exec, SchedulingEventType.START_TASK_EXECUTION); … … 311 311 312 312 PEUnit peUnit = (PEUnit)lastUsed.get(StandardResourceUnitName.PE); 313 notifyComputingResources(peUnit, EnergyEventType.TASK_FINISHED, exec);313 updateComputingResources(peUnit, EnergyEventType.TASK_FINISHED, exec); 314 314 } 315 315 … … 342 342 } 343 343 344 private void notifyComputingResources(PEUnit peUnit, EnergyEventType eventType, Object obj){344 private void updateComputingResources(PEUnit peUnit, EnergyEventType eventType, Object obj){ 345 345 if(peUnit instanceof ProcessingElements){ 346 346 ProcessingElements pes = (ProcessingElements) peUnit; … … 427 427 scheduler.sendInternal(phaseDuration, DCWormsTags.TASK_EXECUTION_FINISHED, execTask); 428 428 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); 430 430 } else { 431 431 scheduler.sendInternal(phaseDuration, DCWormsTags.TASK_EXECUTION_CHANGED, execTask); 432 432 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); 434 434 } 435 435 }
Note: See TracChangeset
for help on using the changeset viewer.