Changeset 494 for DCWoRMS/trunk/src
- Timestamp:
- 10/09/12 15:04:11 (13 years ago)
- Location:
- DCWoRMS/trunk/src
- Files:
-
- 7 edited
Legend:
- Unmodified
- Added
- Removed
-
DCWoRMS/trunk/src/gridsim/dcworms/DCWormsTags.java
r493 r494 8 8 public class DCWormsTags extends GridSimTags { 9 9 10 protected static final int GSSIMBASE = 600;10 protected static final int DCWORMSBASE = 600; 11 11 12 public static final int UPDATE= GSSIMBASE - 1;12 public static final int UPDATE= DCWORMSBASE - 1; 13 13 14 public static final int TIMER = GSSIMBASE + 1;14 public static final int TIMER = DCWORMSBASE + 1; 15 15 16 public static final int TASK_READY_FOR_EXECUTION = GSSIMBASE + 2;16 public static final int TASK_READY_FOR_EXECUTION = DCWORMSBASE + 2; 17 17 18 public static final int TASK_EXECUTION_FINISHED = GSSIMBASE + 3;18 public static final int TASK_EXECUTION_FINISHED = DCWORMSBASE + 3; 19 19 20 20 … … 22 22 * Message tag: query resource about its current state in object form (load, queues, etc.) 23 23 */ 24 public static final int QUERY_RESOURCE_DESC = GSSIMBASE + 4;24 public static final int QUERY_RESOURCE_DESC = DCWORMSBASE + 4; 25 25 26 public static final int QUERY_RESOURCE_DESC_RESULT = GSSIMBASE + 5;26 public static final int QUERY_RESOURCE_DESC_RESULT = DCWORMSBASE + 5; 27 27 28 public static final int TASK_REQUESTED_TIME_EXPIRED = GSSIMBASE + 6;28 public static final int TASK_REQUESTED_TIME_EXPIRED = DCWORMSBASE + 6; 29 29 30 30 -
DCWoRMS/trunk/src/org/joda/time/VCMilisProvider.java
r477 r494 39 39 long vc = Math.round(Sim_system.clock()); 40 40 //System.out.println("SIMJAVA TIME: "+Sim_system.clock()); 41 //System.out.println("CLOUD TIME: "+GSSIM.clock());42 41 43 42 // change virtual seconds to milliseconds -
DCWoRMS/trunk/src/schedframe/resources/computing/ComputingResource.java
r493 r494 157 157 //if(scheduler != null && (parent != null && scheduler != parent.getScheduler())/*scheduler.getResources().contains(this)*/){ 158 158 // String src = event.getSource() != null ? event.getSource() : name; 159 // scheduler.sendInternal(GridSimTags.SCHEDULE_NOW, GssimTags.UPDATE, src);159 // scheduler.sendInternal(GridSimTags.SCHEDULE_NOW, DCWormsTags.UPDATE, src); 160 160 //} 161 161 //triggerEventUp(event); -
DCWoRMS/trunk/src/schedframe/resources/computing/profiles/energy/power/ui/ProcessorPowerInterface.java
r477 r494 1 1 package schedframe.resources.computing.profiles.energy.power.ui; 2 3 import gridsim.dcworms.DCWormsTags; 2 4 3 5 import java.util.Map; … … 83 85 //new ResourceEventCommand(resource).execute(EnergyEventType.FREQUENCY_CHANGED); 84 86 resource.handleEvent(new EnergyEvent(EnergyEventType.FREQUENCY_CHANGED, resource.getName())); 85 //resource.getScheduler().sendInternal(GridSimTags.SCHEDULE_NOW, GssimTags.UPDATE, resource.getName());87 //resource.getScheduler().sendInternal(GridSimTags.SCHEDULE_NOW, DCWormsTags.UPDATE, resource.getName()); 86 88 return true; 87 89 } -
DCWoRMS/trunk/src/schedframe/scheduling/Scheduler.java
r493 r494 133 133 // managemetnSystem_.setEndSimulation(); 134 134 run = false; 135 /*Sim_stat stats = get_stat();136 List<Object[]> measures = stats.get_measures();137 for (Object[] info : measures) {138 String measure = (String) info[0];139 if (measure140 .startsWith(GssimConstants.TASKS_QUEUE_LENGTH_MEASURE_NAME)) {141 System.out.println("====="+this.get_name()+";"+stats.average(measure));142 }143 }*/144 135 break; 145 136 } … … 155 146 156 147 case GridSimTags.GRIDLET_SUBMIT: 157 process GSSIMJobSubmit(ev, false);148 processWorkloadUnitSubmit(ev, false); 158 149 break; 159 150 160 151 case GridSimTags.GRIDLET_SUBMIT_ACK: 161 process GSSIMJobSubmit(ev, true);152 processWorkloadUnitSubmit(ev, true); 162 153 break; 163 154 164 155 case GridSimTags.GRIDLET_RETURN: 165 process GSSIMJobReturn(ev);156 processWorkloadUnitReturn(ev); 166 157 break; 167 158 … … 194 185 }*/ 195 186 196 protected void process GSSIMJobReturn(Sim_event ev) {187 protected void processWorkloadUnitReturn(Sim_event ev) { 197 188 WorkloadUnit job = (WorkloadUnit) ev.get_data(); 198 189 managementSystem.notifyReturnedWorkloadUnit(job); 199 190 } 200 191 201 protected void process GSSIMJobSubmit(Sim_event ev, boolean ack) {192 protected void processWorkloadUnitSubmit(Sim_event ev, boolean ack) { 202 193 WorkloadUnit job = (WorkloadUnit) ev.get_data(); 203 194 managementSystem.notifySubmittedWorkloadUnit(job, ack); -
DCWoRMS/trunk/src/simulator/DataCenterWorkloadSimulator.java
r493 r494 97 97 */ 98 98 public static void main(String[] args) { 99 DataCenterWorkloadSimulator gssim= new DataCenterWorkloadSimulator();100 gssim.run(args);99 DataCenterWorkloadSimulator dcworms = new DataCenterWorkloadSimulator(); 100 dcworms.run(args); 101 101 } 102 102 … … 197 197 } 198 198 199 private void runMultiuser(String rootDirPath, DataCenterWorkloadSimulator gssim) {199 private void runMultiuser(String rootDirPath, DataCenterWorkloadSimulator dcworms) { 200 200 throw new RuntimeException("not supported yet"); 201 201 } -
DCWoRMS/trunk/src/simulator/stats/implementation/DCWormsStatistics.java
r493 r494 809 809 ChartRenderingInfo info = new ChartRenderingInfo(); 810 810 File f = new File(fileName + "." + ImageFormat.PNG); 811 final String gssimSubtitle = "Created by "811 final String dcwormsSubtitle = "Created by " 812 812 + DataCenterWorkloadSimulator.SIMULATOR_NAME 813 813 + " http://www.gssim.org/"; 814 c.addSubtitle(new TextTitle( gssimSubtitle));814 c.addSubtitle(new TextTitle(dcwormsSubtitle)); 815 815 boolean encodeAlpha = false; 816 816 int compression = 9;// values 0-9 … … 1264 1264 // info.setEntityCollection(null); 1265 1265 File f = new File(fileName + "." + ImageFormat.PNG); 1266 final String gssimSubtitle = "Created by " + DataCenterWorkloadSimulator.SIMULATOR_NAME + " http://www.gssim.org/";1267 c.addSubtitle(new TextTitle( gssimSubtitle));1266 final String dcwormsSubtitle = "Created by " + DataCenterWorkloadSimulator.SIMULATOR_NAME + " http://www.gssim.org/"; 1267 c.addSubtitle(new TextTitle(dcwormsSubtitle)); 1268 1268 boolean encodeAlpha = false; 1269 1269 int compression = 9;
Note: See TracChangeset
for help on using the changeset viewer.