Changeset 708 for DCWoRMS/trunk/src/test/article/recs/plugins
- Timestamp:
- 12/20/12 17:23:35 (12 years ago)
- Location:
- DCWoRMS/trunk/src/test/article/recs/plugins/scheduling
- Files:
-
- 3 added
- 2 deleted
- 4 edited
Legend:
- Unmodified
- Added
- Removed
-
DCWoRMS/trunk/src/test/article/recs/plugins/scheduling/RecsExclusivenessDFSSP.java
r679 r708 3 3 import gridsim.dcworms.DCWormsTags; 4 4 5 import java.io.FileNotFoundException; 6 import java.io.IOException; 5 7 import java.util.ArrayList; 6 8 import java.util.HashMap; 7 9 import java.util.List; 8 10 import java.util.Map; 11 import java.util.MissingResourceException; 9 12 import java.util.Random; 10 13 … … 132 135 if(freeCores != cores.size()) 133 136 continue; 137 try { 138 if(!getExecutiveness(createExecutivenessQuery(task, node))) 139 continue; 140 } catch (FileNotFoundException e) { 141 continue; 142 } catch (IOException e) { 143 continue; 144 } catch (MissingResourceException e){ 145 continue; 146 } 134 147 135 148 filteredNodes.add(node); … … 158 171 rppi.setPState(rppi.getHighestPState().getName()); 159 172 else 160 rppi.setPState(rppi.get LowestPState().getName());173 rppi.setPState(rppi.getHighestPState().getName()); 161 174 162 175 } -
DCWoRMS/trunk/src/test/article/recs/plugins/scheduling/RecsExclusivenessEnOptSP.java
r680 r708 22 22 import schedframe.resources.computing.Core; 23 23 import schedframe.resources.computing.Processor; 24 import schedframe.resources.computing.profiles.energy.power.StandardPowerStateName; 24 25 import schedframe.resources.units.ProcessingElements; 25 26 import schedframe.resources.units.ResourceUnit; … … 84 85 List<ComputingNode> nodes = resourceManager.getComputingNodes(); 85 86 Collections.sort(nodes, new EnergyComparator(task)); 87 //System.out.println("*****"); 86 88 for (ComputingNode node : nodes) { 89 //System.out.println(node.getCategory()); 87 90 int cpuRequest; 88 91 try { … … 111 114 if(freeCores != cores.size()) 112 115 continue; 116 117 try { 118 if(!getExecutiveness(createExecutivenessQuery(task, node))) 119 continue; 120 } catch (FileNotFoundException e) { 121 continue; 122 } catch (IOException e) { 123 continue; 124 } catch (MissingResourceException e){ 125 continue; 126 } 127 113 128 List<ComputingResource> choosenResources = new ArrayList<ComputingResource>(); 114 129 for (int i = 0; i < cores.size() && cpuRequest > 0; i++) { … … 201 216 double node2EU = Double.MAX_VALUE; 202 217 try { 203 node1EU = getMeasuredTime(createQuery(task, node1)) * getMeasuredPower(createQuery(task, node1)); 204 node2EU = getMeasuredTime(createQuery(task, node2)) * getMeasuredPower(createQuery(task, node2)); 205 } catch (FileNotFoundException e) { 218 node1EU = getMeasuredTime(createQuery(task, node1)) * (getMeasuredPower(createQuery(task, node1)) - node1.getPowerInterface().getPowerConsumption(StandardPowerStateName.ON)); 219 //System.out.println(node1.getCategory() + ": " + node1EU + "; "+ getMeasuredTime(createQuery(task, node1)) +";" + node1.getPowerInterface().getPowerConsumption(StandardPowerStateName.ON) + ":" + getMeasuredPower(createQuery(task, node1))); 220 node2EU = getMeasuredTime(createQuery(task, node2)) * (getMeasuredPower(createQuery(task, node2)) - node2.getPowerInterface().getPowerConsumption(StandardPowerStateName.ON)); 221 //System.out.println(node2.getCategory() + ": " + node2EU + "; "+ getMeasuredTime(createQuery(task, node2)) +";" + node2.getPowerInterface().getPowerConsumption(StandardPowerStateName.ON) + ":" + getMeasuredPower(createQuery(task, node2))); 222 } catch (FileNotFoundException e) { 206 223 207 224 } catch (IOException e) { … … 209 226 } catch (MissingResourceException e){ 210 227 228 } catch (NoSuchFieldException e) { 229 211 230 } 212 231 if(node1EU > node2EU) -
DCWoRMS/trunk/src/test/article/recs/plugins/scheduling/RecsExclusivenessRandomSP.java
r679 r708 3 3 import gridsim.dcworms.DCWormsTags; 4 4 5 import java.io.FileNotFoundException; 6 import java.io.IOException; 5 7 import java.util.ArrayList; 6 8 import java.util.HashMap; 7 9 import java.util.List; 8 10 import java.util.Map; 11 import java.util.MissingResourceException; 9 12 import java.util.Random; 10 13 … … 131 134 continue; 132 135 136 try { 137 if(!getExecutiveness(createExecutivenessQuery(task, node))) 138 continue; 139 } catch (FileNotFoundException e) { 140 continue; 141 } catch (IOException e) { 142 continue; 143 } catch (MissingResourceException e){ 144 continue; 145 } 133 146 filteredNodes.add(node); 134 147 } -
DCWoRMS/trunk/src/test/article/recs/plugins/scheduling/RecsSP.java
r705 r708 27 27 } 28 28 29 protected String create Query(TaskInterface<?> task, ComputingNode node) {29 protected String createExecutivenessQuery(TaskInterface<?> task, ComputingNode node) { 30 30 Executable exec = (Executable)task; 31 31 String query = getApplicationType(exec) + "." + getNodeCategory(node);
Note: See TracChangeset
for help on using the changeset viewer.