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

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

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

revision 2716 by torben, Sun Sep 27 20:07:50 2015 UTC revision 2717 by torben, Sun Sep 27 20:18:23 2015 UTC
# Line 80  public class LookupMain { Line 80  public class LookupMain {
80                  Constants.init(distributor);                  Constants.init(distributor);
81                  Constants consts = Constants.getInstance();                  Constants consts = Constants.getInstance();
82    
                   
                 Database db = new Database(conf);  
                 Queue<Adresse> ikkeDaekkede = db.hentAlleIkkedaekkedeAdresser(consts.getMinPostnr(), consts.getMaxPostnr() );  
                 antalIkkeDaekkede = ikkeDaekkede.size();  
                 logger.info("Antal ikke-daekkede: " + antalIkkeDaekkede );  
   
   
83                  max_workers = Integer.parseInt( conf.getSafeProperty("MAX_WORKERS") );                    max_workers = Integer.parseInt( conf.getSafeProperty("MAX_WORKERS") );  
84                  if (max_workers <= 0) {                    if (max_workers <= 0) {  
85                          logger.info("!!! AUTO-DETECT MAX_WORKERS !!!");                            logger.info("!!! AUTO-DETECT MAX_WORKERS !!!");  
# Line 99  public class LookupMain { Line 92  public class LookupMain {
92                  logger.info("Starting with MAX_WORKERS:" + max_workers);                          logger.info("Starting with MAX_WORKERS:" + max_workers);        
93                  setupThreadPool();                  setupThreadPool();
94    
95                    
96                    Database db = new Database(conf);
97                    Queue<Adresse> ikkeDaekkede = db.hentAlleIkkedaekkedeAdresser(consts.getMinPostnr(), consts.getMaxPostnr() );
98                    antalIkkeDaekkede = ikkeDaekkede.size();
99                    logger.info("Antal ikke-daekkede: " + antalIkkeDaekkede );
100    
101    
102    
103                  boolean testRun= false;                  boolean testRun= false;
104    
105                  AtomicInteger antalFundne = new AtomicInteger(0);                  AtomicInteger antalFundne = new AtomicInteger(0);

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

  ViewVC Help
Powered by ViewVC 1.1.20