29using ONIXS_ICEBOE_NAMESPACE::SessionSettings;
37 const auto settingsFilename = settingsCfg.
settingsFile();
39 if (ONIXS_ICEBOE_NAMESPACE::Filesystem::exist(settingsFilename))
41 settings.
load(settingsFilename);
58 std::cerr <<
"TLS connection is selected." << std::endl;
66 const auto storageType = cfg.
storage();
72template <
typename Config>
78template <
typename Config>
82template <
typename Config>
87 std::cerr <<
"Please disable TLS for benchmarking." << std::endl;
95template <
typename Config>
101template <
typename AppCfg>
LogLevel::Enum logLevel() const noexcept
The default value is LogLevel::Info.
const std::string & userId() const noexcept
const CpuIndexes & asyncFileBasedStorageThreadAffinity() const noexcept
bool useTLS() const noexcept
unsigned short keepAliveInterval() const noexcept
SessionSettings & load(const std::string &configFile)
Loads the settings from the given configuration file.
SessionSettings & licenseStore(const std::string &value)
Sets the path to the folder that contains license file(s).
LogSettings::Enum loggerOptions() const noexcept
std::string password() const
std::string userId() const
std::string settingsFile() const
OnixS::ICE::BOE::CpuIndex storageAffinity() const
OnixS::ICE::BOE::SessionStorageType::Enum storage() const
void fillStorageSettings(SessionSettings &settings, const Config &cfg, typename std::enable_if< std::is_base_of< StorageConfigurationBase, Config >::value, void * >::type=nullptr)
void fillBenchmarkSettings(SessionSettings &settings, const Config &, typename std::enable_if< std::is_base_of< BenchmarkConfiguration, Config >::value, void * >::type=nullptr)
SessionSettings fillSettings(const LogonConfiguration &logonCfg, const ConnectivityConfiguration &connCfg, const SettingsConfiguration &settingsCfg)
@ Error
A serious error that prevents normal execution.
@ Debug
Detailed diagnostic information useful during development and testing.
@ TraceToFile
Trace to the log file.
@ AsyncFileBased
Asynchronous File-Based Session Storage.