Ignore:
Timestamp:
08/28/13 15:20:32 (12 years ago)
Author:
wojtekp
Message:
 
File:
1 edited

Legend:

Unmodified
Added
Removed
  • DCWoRMS/branches/coolemall/src/test/article2/recs/utils/TaskToApp.java

    r826 r1200  
    44import java.util.Map; 
    55import java.util.Random; 
     6 
     7import dcworms.schedframe.scheduling.Executable; 
    68 
    79import schedframe.scheduling.tasks.TaskInterface; 
     
    2426                if(mappingType.get(task.getJobId())!= null){ 
    2527                        appType = mappingType.get(task.getJobId()); 
     28                        Executable exec = (Executable) task; 
     29                        exec.getDescription().getExecution().getExecutable().getApplication().setName(appType.toString()); 
    2630                }else{ 
    2731                        appType = randomAppType(); 
    2832                        mappingType.put(task.getJobId(), appType); 
    29                 }return appType; 
     33                } 
     34                return appType; 
    3035        } 
    3136         
     
    3843                }else if(n < PYBENCH){ 
    3944                        appType = AppType.pybench; 
    40                 } else if (n < UNPACK_LINUX){ 
     45                }else if (n < UNPACK_LINUX){ 
    4146                        appType = AppType.unpack_linux; 
    4247                } 
     
    5459        } 
    5560         
    56          
    5761        private double randomAppLoad(){ 
    5862                double appLoad = 0; 
Note: See TracChangeset for help on using the changeset viewer.