diff options
author | Gordon Sim <gsim@apache.org> | 2006-11-15 10:28:11 +0000 |
---|---|---|
committer | Gordon Sim <gsim@apache.org> | 2006-11-15 10:28:11 +0000 |
commit | 8690d6d8c01335523a8a4b1677979ee1ce51dec0 (patch) | |
tree | 8df5afa2dcd96a57b9cbf869a7a3a672af4ba134 /cpp/src/qpid/broker/Configuration.cpp | |
parent | 71ae30ea0b7d3cb4b848ad84fb90c782894cf606 (diff) | |
download | qpid-python-8690d6d8c01335523a8a4b1677979ee1ce51dec0.tar.gz |
Added ability for broker to load a message store implementation from a library.
git-svn-id: https://svn.apache.org/repos/asf/incubator/qpid/trunk/qpid@475181 13f79535-47bb-0310-9956-ffa450edef68
Diffstat (limited to 'cpp/src/qpid/broker/Configuration.cpp')
-rw-r--r-- | cpp/src/qpid/broker/Configuration.cpp | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/cpp/src/qpid/broker/Configuration.cpp b/cpp/src/qpid/broker/Configuration.cpp index 4cc9cd3a0c..39f5c23ee6 100644 --- a/cpp/src/qpid/broker/Configuration.cpp +++ b/cpp/src/qpid/broker/Configuration.cpp @@ -30,6 +30,7 @@ Configuration::Configuration() : workerThreads("worker-threads", "Sets the number of worker threads to use (default=5).", 5), maxConnections("max-connections", "Sets the maximum number of connections the broker can accept (default=500).", 500), connectionBacklog("connection-backlog", "Sets the connection backlog for the servers socket (default=10)", 10), + store('s', "store", "Sets the message store module to use (default='' which implies no store)", ""), help("help", "Prints usage information", false) { options.push_back(&trace); @@ -37,6 +38,7 @@ Configuration::Configuration() : options.push_back(&workerThreads); options.push_back(&maxConnections); options.push_back(&connectionBacklog); + options.push_back(&store); options.push_back(&help); } @@ -86,6 +88,10 @@ int Configuration::getConnectionBacklog() const { return connectionBacklog.getValue(); } +const std::string& Configuration::getStore() const { + return store.getValue(); +} + Configuration::Option::Option(const char _flag, const string& _name, const string& _desc) : flag(string("-") + _flag), name("--" +_name), desc(_desc) {} |