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() ); |
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 |
|
|
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 |
} |
} |