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

Diff of /dao/FuldDaekningWorker/src/main/java/dk/daoas/fulddaekning/LookupMain.java

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

dao/FuldDaekningWorker/src/dk/daoas/fulddaekning/LookupMain.java revision 2717 by torben, Sun Sep 27 20:18:23 2015 UTC dao/FuldDaekningWorker/src/main/java/dk/daoas/fulddaekning/LookupMain.java revision 2736 by torben, Fri Oct 2 09:34:36 2015 UTC
# Line 24  public class LookupMain { Line 24  public class LookupMain {
24    
25          static final String CONFIG_FILENAME = "fulddaekning.properties";          static final String CONFIG_FILENAME = "fulddaekning.properties";
26    
27          static boolean rename_tables;          static boolean test_mode;
28          static SafeProperties conf;          static SafeProperties conf;
29    
30          static int max_workers;          static int max_workers;
# Line 70  public class LookupMain { Line 70  public class LookupMain {
70                  verbose = Boolean.parseBoolean( conf.getSafeProperty("VERBOSE") );                  verbose = Boolean.parseBoolean( conf.getSafeProperty("VERBOSE") );
71                  logger.info("Starting with VERBOSE:" + verbose);                  logger.info("Starting with VERBOSE:" + verbose);
72    
73                  rename_tables = Boolean.parseBoolean( conf.getSafeProperty("RENAMETABLES") );                  test_mode = Boolean.parseBoolean( conf.getSafeProperty("TEST") );
74                  logger.info("Starting with RENAMETABLES:" + rename_tables);                  logger.info("Starting with TEST:" + test_mode);
75    
76                  distributor = conf.getSafeProperty("DISTRIBUTOR");                  distributor = conf.getSafeProperty("DISTRIBUTOR");
77                  distributor = distributor.toUpperCase();                  distributor = distributor.toUpperCase();
# Line 158  public class LookupMain { Line 158  public class LookupMain {
158                                                    
159                          barrier.await(); // Afvent at workerne bliver færdige                          barrier.await(); // Afvent at workerne bliver færdige
160                                                    
161                            logger.info("Calc is done - cleaning up remaining bits");
162                            
163                          threadPool.shutdown(); //Calc is done now                          threadPool.shutdown(); //Calc is done now
164    
165    
166                          db.saveBatch();                          db.saveBatch();
167    
168                          if (rename_tables) {                          if (test_mode) {
169                                  db.renameResultTables();                                  db.renameResultTables();
170                          } else {                          } else {
171                                  logger.info( "Rename tables is disabled !!!" );                                  logger.info( "Rename tables is disabled !!!" );

Legend:
Removed from v.2717  
changed lines
  Added in v.2736

  ViewVC Help
Powered by ViewVC 1.1.20