From 8690d6d8c01335523a8a4b1677979ee1ce51dec0 Mon Sep 17 00:00:00 2001 From: Gordon Sim Date: Wed, 15 Nov 2006 10:28:11 +0000 Subject: 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 --- cpp/src/qpid/broker/Configuration.cpp | 6 ++++++ 1 file changed, 6 insertions(+) (limited to 'cpp/src/qpid/broker/Configuration.cpp') 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) {} -- cgit v1.2.1