Changeset 1346 for DCWoRMS/branches


Ignore:
Timestamp:
04/01/14 15:29:07 (11 years ago)
Author:
wojtekp
Message:
 
Location:
DCWoRMS/branches/coolemall/src/simulator
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • DCWoRMS/branches/coolemall/src/simulator/DataCenterWorkloadSimulator.java

    r1299 r1346  
    245245                } 
    246246 
    247                 WorkloadLoader workload = loadWorkload(options); 
     247                WorkloadLoader workload = null; 
     248                 
     249                try{ 
     250                        workload = loadWorkload(options); 
     251                } catch (Exception e) { 
     252                        if (log.isErrorEnabled()) 
     253                                log.error("ERROR while reading workload and application profiles"); 
     254                        throw e; 
     255                } 
    248256         
    249257                // BEGIN: Initializing the GridSim: 
     
    272280                ResourceReader resourceReader = new ResourceReader( 
    273281                                options.resdescFileName); 
    274                 SimulatedEnvironment simEnv = resourceReader.read(); 
     282                SimulatedEnvironment simEnv; 
     283                 
     284                try { 
     285                        simEnv= resourceReader.read(); 
     286                } catch (Exception e){ 
     287                        if (log.isErrorEnabled()) 
     288                                log.error("ERROR while reading resource description"); 
     289                        throw e; 
     290                } 
    275291                 
    276292                eventManager = new EventManager("eventManager", simEnv); 
  • DCWoRMS/branches/coolemall/src/simulator/reader/ResourceReader.java

    r1207 r1346  
    105105                System.out.println("finished creating resource"); 
    106106 
    107                 System.out.println("started creating schedulers"); 
     107                System.out.println("started creating scheduling entities"); 
    108108                Scheduler mainScheduler = createSchedulers(env.getResources().getScheduler(), computingResources); 
    109                 System.out.println("finished creating schedulers"); 
     109                System.out.println("finished creating scheduling entities"); 
    110110 
    111111                SimulatedEnvironment simEnv = new SimulatedEnvironment(mainScheduler, computingResources); 
Note: See TracChangeset for help on using the changeset viewer.