17 |
static int max_workers; |
static int max_workers; |
18 |
static boolean verbose; |
static boolean verbose; |
19 |
|
|
20 |
static Properties conf; |
static SafeProperties conf; |
21 |
static Logger logger = Logger.getLogger( Lookup.class.toString() ); |
static Logger logger = Logger.getLogger( Lookup.class.toString() ); |
22 |
|
|
23 |
int postnr; |
int postnr; |
161 |
System.exit(1); |
System.exit(1); |
162 |
} |
} |
163 |
|
|
164 |
conf = new Properties(); |
conf = new SafeProperties(); |
165 |
conf.load( new FileReader(confFile) ); |
conf.load( new FileReader(confFile) ); |
166 |
|
|
167 |
max_workers = Integer.parseInt( conf.getProperty("MAX_WORKERS") ); |
max_workers = Integer.parseInt( conf.getSafeProperty("MAX_WORKERS") ); |
168 |
logger.info("Starting with MAX_WORKERS:" + max_workers); |
logger.info("Starting with MAX_WORKERS:" + max_workers); |
169 |
|
|
170 |
verbose = Boolean.parseBoolean( conf.getProperty("VERBOSE") ); |
verbose = Boolean.parseBoolean( conf.getSafeProperty("VERBOSE") ); |
171 |
logger.info("Starting with VERBOSE:" + verbose); |
logger.info("Starting with VERBOSE:" + verbose); |
172 |
|
|
173 |
Database db = new Database(conf); |
Database db = new Database(conf); |