Changeset 1415 for DCWoRMS/branches/coolemall/src/example/load
- Timestamp:
- 07/15/14 16:26:31 (11 years ago)
- Location:
- DCWoRMS/branches/coolemall/src/example/load
- Files:
-
- 2 edited
Legend:
- Unmodified
- Added
- Removed
-
DCWoRMS/branches/coolemall/src/example/load/DefaultLoadEstimationPlugin.java
r1396 r1415 2 2 3 3 import schedframe.resources.computing.ComputingResource; 4 import schedframe.resources.computing.profiles.energy. EnergyEvent;4 import schedframe.resources.computing.profiles.energy.ResourceEvent; 5 5 import schedframe.resources.devices.PhysicalResource; 6 6 import schedframe.scheduling.manager.tasks.JobRegistry; … … 10 10 public class DefaultLoadEstimationPlugin extends BaseLoadEstimationPlugin{ 11 11 12 public double estimateUtlization( EnergyEvent event, JobRegistry jobRegistry, PhysicalResource resource) {12 public double estimateUtlization(ResourceEvent event, JobRegistry jobRegistry, PhysicalResource resource) { 13 13 14 14 ComputingResource computingResource = (ComputingResource) resource; -
DCWoRMS/branches/coolemall/src/example/load/ProcessorLoadEstimationPlugin.java
r1396 r1415 2 2 3 3 import schedframe.resources.computing.Processor; 4 import schedframe.resources.computing.profiles.energy. EnergyEvent;4 import schedframe.resources.computing.profiles.energy.ResourceEvent; 5 5 import schedframe.resources.devices.PhysicalResource; 6 6 import schedframe.scheduling.manager.tasks.JobRegistry; 7 7 import schedframe.scheduling.manager.tasks.JobRegistryImpl; 8 import schedframe.scheduling.tasks.phases.Phase Behaviour;8 import schedframe.scheduling.tasks.phases.PhaseSystemLoad; 9 9 import dcworms.schedframe.scheduling.ExecTask; 10 10 11 11 public class ProcessorLoadEstimationPlugin extends BaseLoadEstimationPlugin{ 12 12 13 public double estimateUtlization( EnergyEvent event, JobRegistry jobRegistry, PhysicalResource resource) {13 public double estimateUtlization(ResourceEvent event, JobRegistry jobRegistry, PhysicalResource resource) { 14 14 Processor proc = (Processor) resource; 15 15 double sumCoresLoad = 0; … … 26 26 double cpuUsage = 1 / nrOfThreadsOnCpu; 27 27 28 for(Phase Behaviour pb: task.getExecutionProfile().getCurrentResourceConsumption().getBehaviourList()){28 for(PhaseSystemLoad pb: task.getExecutionProfile().getCurrentResourceConsumption().getSystemLoad()){ 29 29 if(pb.getResouceName().equals("PM_CPU_Usage")){ 30 30 cpuUsage = pb.getUtilization();
Note: See TracChangeset
for help on using the changeset viewer.