cfg.setPoolSize(HarvesterConfiguration.DEFAULT_POOL_SIZE);
}
if (autoselectfrequency.length() > 0) {
try {
TimePeriod tp = TimePeriod.parseValue(autoselectfrequency);
cfg.setAutoSelectFrequency(tp);
} catch (NumberFormatException ex) {
logger.log(Level.INFO, "[SYNCHRONIZER] Invalid \"webharvester.autoSelectFrequency\" parameter. Default {0} will be used instead.", HarvesterConfiguration.AUTOSELECT_FREQUENCY);
cfg.setAutoSelectFrequency(new TimePeriod(HarvesterConfiguration.AUTOSELECT_FREQUENCY));
}
} else {
logger.log(Level.INFO, "[SYNCHRONIZER] Missing \"webharvester.autoSelectFrequency\" parameter. Default {0} will be used instead.", HarvesterConfiguration.AUTOSELECT_FREQUENCY);
cfg.setAutoSelectFrequency(new TimePeriod(HarvesterConfiguration.AUTOSELECT_FREQUENCY));
}
if (watchdogfrequency.length() > 0) {
try {
TimePeriod tp = TimePeriod.parseValue(watchdogfrequency);
cfg.setWatchDogFrequency(tp);
} catch (NumberFormatException ex) {
logger.log(Level.INFO, "[SYNCHRONIZER] Invalid \"webharvester.watchDogFrequency\" parameter. Default {0} will be used instead.", HarvesterConfiguration.WATCHDOG_FREQUENCY);
cfg.setWatchDogFrequency(new TimePeriod(HarvesterConfiguration.WATCHDOG_FREQUENCY));
}
} else {
logger.log(Level.INFO, "[SYNCHRONIZER] Missing \"webharvester.watchDogFrequency\" parameter. Default {0} will be used instead.", HarvesterConfiguration.WATCHDOG_FREQUENCY);
cfg.setWatchDogFrequency(new TimePeriod(HarvesterConfiguration.WATCHDOG_FREQUENCY));
}
if (basecontextpath.length() > 0) {
cfg.setBaseContextPath(basecontextpath);
} else {