- Timestamp:
- 07/15/13 16:46:11 (12 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
DCWoRMS/branches/coolemall/src/simulator/workload/writer/swf/QcgSWFJobWriter.java
r883 r1131 10 10 import org.qcg.broker.schemas.exception.NoSuchParamException; 11 11 import org.qcg.broker.schemas.jobdesc.ExecutionTimeType; 12 import org.qcg.broker.schemas.jobdesc.QcgJob;13 12 import org.qcg.broker.schemas.jobdesc.Task; 14 13 import org.qcg.broker.schemas.jobdesc.wrapper.TaskRequirements; … … 20 19 * 21 20 */ 22 public class QcgSWFJobWriter extends AbstractSWFJobWriter< QcgJob>{21 public class QcgSWFJobWriter extends AbstractSWFJobWriter<org.qcg.broker.schemas.jobdesc.Job>{ 23 22 24 23 protected int intTaskId; … … 33 32 } 34 33 35 public boolean write( QcgJob job) throws IOException {34 public boolean write(org.qcg.broker.schemas.jobdesc.Job job) throws IOException { 36 35 long taskLength; 37 36 String idMapping; … … 46 45 if(this.useTaskMapping){ 47 46 taskId = String.valueOf(intTaskId); 48 idMapping = taskId+":"+job.get AppId()+":"+task.getTaskId();47 idMapping = taskId+":"+job.getId()+":"+task.getId(); 49 48 intTaskId++; 50 49 this.taskMapping.add(idMapping); 51 50 } else { 52 taskId = task.get TaskId();51 taskId = task.getId(); 53 52 } 54 53 55 54 // prepare task length value 56 if(tasksLength.containsKey(task.get TaskId())){57 taskLength = tasksLength.get(task.get TaskId());55 if(tasksLength.containsKey(task.getId())){ 56 taskLength = tasksLength.get(task.getId()); 58 57 } else { 59 58 taskLength = 0;
Note: See TracChangeset
for help on using the changeset viewer.