/[projects]/dao/FuldDaekningWorker/src/dk/daoas/fulddaekning/Lookup.java
ViewVC logotype

Diff of /dao/FuldDaekningWorker/src/dk/daoas/fulddaekning/Lookup.java

Parent Directory Parent Directory | Revision Log Revision Log | View Patch Patch

revision 2194 by torben, Thu Jun 19 10:24:16 2014 UTC revision 2195 by torben, Thu Jun 19 10:56:04 2014 UTC
# Line 20  public class Lookup { Line 20  public class Lookup {
20          static int max_workers;          static int max_workers;
21          static boolean verbose;          static boolean verbose;
22                    
23            static boolean rename_tables;
24            
25          static SafeProperties conf;          static SafeProperties conf;
26          static Logger logger = Logger.getLogger( Lookup.class.toString() );          static Logger logger = Logger.getLogger( Lookup.class.toString() );
27                    
# Line 173  public class Lookup { Line 175  public class Lookup {
175                  verbose = Boolean.parseBoolean( conf.getSafeProperty("VERBOSE") );                  verbose = Boolean.parseBoolean( conf.getSafeProperty("VERBOSE") );
176                  logger.info("Starting with VERBOSE:" + verbose);                  logger.info("Starting with VERBOSE:" + verbose);
177                                    
178                    rename_tables = Boolean.parseBoolean( conf.getSafeProperty("RENAMETABLES") );
179                    logger.info("Starting with RENAMETABLES:" + rename_tables);
180                    
181                  Database db = new Database(conf);                  Database db = new Database(conf);
182                                    
183                  db.resetResultTable();                  db.resetResultTable();
# Line 191  public class Lookup { Line 196  public class Lookup {
196                          lookup.doLookup();                                                lookup.doLookup();                      
197                  }                  }
198                                    
199                  db.renameResultTables();                  if (rename_tables) {
200                            db.renameResultTables();
201                    } else {
202                            logger.info( "Rename tables is disabled !!!" );
203                    }
204                                    
205                  long now = System.currentTimeMillis();                  long now = System.currentTimeMillis();
206    

Legend:
Removed from v.2194  
changed lines
  Added in v.2195

  ViewVC Help
Powered by ViewVC 1.1.20