Ignore:
Timestamp:
04/01/14 15:29:07 (11 years ago)
Author:
wojtekp
Message:
 
File:
1 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); 
Note: See TracChangeset for help on using the changeset viewer.