diff options
| author | Alan Conway <aconway@apache.org> | 2007-08-15 14:56:51 +0000 |
|---|---|---|
| committer | Alan Conway <aconway@apache.org> | 2007-08-15 14:56:51 +0000 |
| commit | 4ea2e527fedb69bd0ae93e79acefebf106b34318 (patch) | |
| tree | 6310181a0d61b675ccd97491ba52c161883434a0 /cpp/src/tests/TestOptions.h | |
| parent | 8c9a768363eb8a5069920adc054eb89295584db1 (diff) | |
| download | qpid-python-4ea2e527fedb69bd0ae93e79acefebf106b34318.tar.gz | |
* perftest/topic_publisher.cpp, topic_listener.cpp:
Combined into a single preftest.cpp executable and moved to
src/tests.
New perftest:
- Supports all client-side options (--host, --port etc.)
- Can be run as producer (--listen), consumer (--publish) or both.
- --count specifies number of messages (default 500000 as before)
git-svn-id: https://svn.apache.org/repos/asf/incubator/qpid/trunk/qpid@566211 13f79535-47bb-0310-9956-ffa450edef68
Diffstat (limited to 'cpp/src/tests/TestOptions.h')
| -rw-r--r-- | cpp/src/tests/TestOptions.h | 7 |
1 files changed, 7 insertions, 0 deletions
diff --git a/cpp/src/tests/TestOptions.h b/cpp/src/tests/TestOptions.h index 5b3c0958f5..95ebb1e219 100644 --- a/cpp/src/tests/TestOptions.h +++ b/cpp/src/tests/TestOptions.h @@ -25,6 +25,7 @@ #include "qpid/log/Options.h" #include "qpid/Url.h" #include "qpid/log/Logger.h" +#include "qpid/client/Connection.h" #include <iostream> #include <exception> @@ -63,6 +64,12 @@ struct TestOptions : public qpid::Options trace = log.trace; qpid::log::Logger::instance().configure(log, argv[0]); } + + /** Open a connection usin option values */ + void open(qpid::client::Connection& connection) { + connection.open(host, port, username, password, virtualhost); + } + std::string host; uint16_t port; |
