Ignore:
Timestamp:
07/15/13 16:46:11 (12 years ago)
Author:
wojtekp
Message:
 
File:
1 edited

Legend:

Unmodified
Added
Removed
  • DCWoRMS/branches/coolemall/src/simulator/workload/writer/swf/QcgSWFJobWriter.java

    r883 r1131  
    1010import org.qcg.broker.schemas.exception.NoSuchParamException; 
    1111import org.qcg.broker.schemas.jobdesc.ExecutionTimeType; 
    12 import org.qcg.broker.schemas.jobdesc.QcgJob; 
    1312import org.qcg.broker.schemas.jobdesc.Task; 
    1413import org.qcg.broker.schemas.jobdesc.wrapper.TaskRequirements; 
     
    2019 * 
    2120 */ 
    22 public class QcgSWFJobWriter extends AbstractSWFJobWriter<QcgJob>{ 
     21public class QcgSWFJobWriter extends AbstractSWFJobWriter<org.qcg.broker.schemas.jobdesc.Job>{ 
    2322 
    2423        protected int intTaskId; 
     
    3332        } 
    3433         
    35         public boolean write(QcgJob job) throws IOException { 
     34        public boolean write(org.qcg.broker.schemas.jobdesc.Job job) throws IOException { 
    3635                long taskLength; 
    3736                String idMapping; 
     
    4645                        if(this.useTaskMapping){ 
    4746                                taskId = String.valueOf(intTaskId); 
    48                                 idMapping = taskId+":"+job.getAppId()+":"+task.getTaskId(); 
     47                                idMapping = taskId+":"+job.getId()+":"+task.getId(); 
    4948                                intTaskId++; 
    5049                                this.taskMapping.add(idMapping); 
    5150                        } else { 
    52                                 taskId = task.getTaskId(); 
     51                                taskId = task.getId(); 
    5352                        } 
    5453                         
    5554                        // prepare task length value 
    56                         if(tasksLength.containsKey(task.getTaskId())){ 
    57                                 taskLength = tasksLength.get(task.getTaskId()); 
     55                        if(tasksLength.containsKey(task.getId())){ 
     56                                taskLength = tasksLength.get(task.getId()); 
    5857                        } else { 
    5958                                taskLength = 0; 
Note: See TracChangeset for help on using the changeset viewer.