CatapultServer
v0.5.0.1 (Elephant)
|
Go to the documentation of this file.
22 #include <boost/filesystem/path.hpp>
24 #include <unordered_set>
26 namespace catapult {
namespace utils {
class ConfigurationBag; } }
28 namespace catapult {
namespace mongo {
void VerifyBagSizeLte(const ConfigurationBag &bag, size_t expectedSize)
Verifies that the number of properties in bag is no greater than expectedSize.
Definition: utils/ConfigurationUtils.cpp:38
DatabaseConfiguration()=default
static DatabaseConfiguration Uninitialized()
Creates an uninitialized database configuration.
Definition: DatabaseConfiguration.cpp:30
#define LOAD_DB_PROPERTY(NAME)
uint32_t MaxWriterThreads
Maximum number of database writer threads.
Definition: DatabaseConfiguration.h:40
std::string DatabaseUri
Database uri.
Definition: DatabaseConfiguration.h:34
A simple bag of properties.
Definition: ConfigurationBag.h:57
static DatabaseConfiguration LoadFromPath(const boost::filesystem::path &resourcesPath)
Loads a database configuration from resourcesPath.
Definition: DatabaseConfiguration.cpp:54
std::string DatabaseName
Database name.
Definition: DatabaseConfiguration.h:37
std::unordered_set< std::string > Plugins
Named database plugins to enable.
Definition: DatabaseConfiguration.h:43
static DatabaseConfiguration LoadFromBag(const utils::ConfigurationBag &bag)
Loads a database configuration from bag.
Definition: DatabaseConfiguration.cpp:34
Definition: AddressExtractionExtension.cpp:28
Database configuration settings.
Definition: DatabaseConfiguration.h:31
std::pair< std::unordered_set< std::string >, size_t > ExtractSectionAsUnorderedSet(const ConfigurationBag &bag, const char *section)
Definition: utils/ConfigurationUtils.cpp:49