File logFile = logFileSpec.value(optionSet);
Level level = logLevelSpec.value(optionSet);
configureLogging(logFile, level);
ConverterServerBuilder builder = ConverterServerBuilder.builder()
.baseUri(baseUri)
.baseFolder(baseFolder)
.workerPool(corePoolSize, corePoolSize + fallbackPoolSize, keepAliveTime, TimeUnit.MILLISECONDS)
.processTimeout(processTimeout, TimeUnit.MILLISECONDS)
.requestTimeout(requestTimeout, TimeUnit.MILLISECONDS);
for (Class<? extends IExternalConverter> externalConverter : converterDisabledSpec.values(optionSet)) {
builder = builder.disable(externalConverter);
}
for (Class<? extends IExternalConverter> externalConverter : converterEnabledSpec.values(optionSet)) {
builder = builder.enable(externalConverter);
}
return builder;
}