/[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

revision 2770 by torben, Thu Oct 15 15:34:27 2015 UTC revision 2771 by torben, Mon Nov 16 10:46:04 2015 UTC
# Line 32  public class LookupMain { Line 32  public class LookupMain {
32          static int max_workers;          static int max_workers;
33          static boolean verbose;          static boolean verbose;
34    
35            static String trigger_url;
36    
37          static String distributor;          static String distributor;
38    
39          final static Logger logger = Logger.getLogger( LookupMain.class.toString() );          final static Logger logger = Logger.getLogger( LookupMain.class.toString() );
# Line 82  public class LookupMain { Line 84  public class LookupMain {
84                  distributor = distributor.toUpperCase();                  distributor = distributor.toUpperCase();
85                  logger.info("Starting for DISTRIBUTOR:" + distributor);                  logger.info("Starting for DISTRIBUTOR:" + distributor);
86    
87                    trigger_url = conf.getSafeProperty("TRIGGER_URL");
88    
89                  Constants.init(distributor);                  Constants.init(distributor);
90                  Constants consts = Constants.getInstance();                  Constants consts = Constants.getInstance();
91    
# Line 178  public class LookupMain { Line 182  public class LookupMain {
182    
183                          if (test_mode == false) {                          if (test_mode == false) {
184                                  db.renameResultTables();                                  db.renameResultTables();
185    
186                                    logger.info("Calling trigger URL");
187                                    String url = trigger_url + "&trigger=AfstandAndenRute/" + distributor;
188    
189                                    HttpUtil.getContentString(url, 500);
190    
191                          } else {                          } else {
192                                  logger.info( "Rename tables is disabled !!!" );                                  logger.info( "Rename tables is disabled !!!" );
193                          }                          }

Legend:
Removed from v.2770  
changed lines
  Added in v.2771

  ViewVC Help
Powered by ViewVC 1.1.20