Changeset 2539


Ignore:
Timestamp:
Jul 3, 2014, 1:48:03 PM (9 years ago)
Author:
olle
Message:

Refs #615. Lab environment extension service updated to hopefully increase stability:

  1. Class/file LabEnvService.java in src/net/sf/basedb/labenv/service/ updated in public method void start() by putting the code inside the TimerTask run() method in a try-catch block that catches all exceptions and writes them to the log file, before swallowing them. This in intended to avoid that the TimerTask stops after an exception is thrown for the run() method.
File:
1 edited

Legend:

Unmodified
Added
Removed
  • extensions/net.sf.basedb.labenv/trunk/src/net/sf/basedb/labenv/service/LabEnvService.java

    r2342 r2539  
    130130      {
    131131        timer = new TimerTask()
    132         {
    133          
     132        {     
    134133          @Override
    135134          public void run()
    136135          {
    137             labEnvironment.measureAndStoreLabEnvironmentData();
     136            try
     137            {             
     138              labEnvironment.measureAndStoreLabEnvironmentData();
     139            }
     140            catch (Exception e)
     141            {
     142              log.info("start(): Catched exception e: ", e);
     143            }
    138144          }
    139145        };
Note: See TracChangeset for help on using the changeset viewer.