CatapultServer
v0.5.0.1 (Elephant)
|
Database configuration settings. More...
Static Public Member Functions | |
static DatabaseConfiguration | Uninitialized () |
Creates an uninitialized database configuration. More... | |
static DatabaseConfiguration | LoadFromBag (const utils::ConfigurationBag &bag) |
Loads a database configuration from bag. More... | |
static DatabaseConfiguration | LoadFromPath (const boost::filesystem::path &resourcesPath) |
Loads a database configuration from resourcesPath. More... | |
Public Attributes | |
std::string | DatabaseUri |
Database uri. More... | |
std::string | DatabaseName |
Database name. More... | |
uint32_t | MaxWriterThreads |
Maximum number of database writer threads. More... | |
std::unordered_set< std::string > | Plugins |
Named database plugins to enable. More... | |
Private Member Functions | |
DatabaseConfiguration ()=default | |
Database configuration settings.
|
privatedefault |
|
static |
Loads a database configuration from bag.
|
static |
Loads a database configuration from resourcesPath.
|
static |
Creates an uninitialized database configuration.
std::string catapult::mongo::DatabaseConfiguration::DatabaseName |
Database name.
std::string catapult::mongo::DatabaseConfiguration::DatabaseUri |
Database uri.
uint32_t catapult::mongo::DatabaseConfiguration::MaxWriterThreads |
Maximum number of database writer threads.
std::unordered_set<std::string> catapult::mongo::DatabaseConfiguration::Plugins |
Named database plugins to enable.